Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
636
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. var n = int.Parse(Console.ReadLine());
  2. for (int row = 1; row < n; row++)
  3. {
  4. for (int space = 1; space <= n - row; space++)
  5. {
  6. Console.Write(" ");
  7. }
  8. for (int star = 1; star < row*2; star++)
  9. {
  10. Console.Write("*");
  11. }
  12. Console.WriteLine();
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement