Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Pine Tree
- Console.WriteLine("Pine Tree");
- int size = 80;
- for (i = 0; i < size; i++)
- {
- if (i % 2 == 0) continue;
- for (int k = (size - i) / 2; k > 0; k--)
- {
- Console.Write(" ");
- }
- for (int j = 0; j < i; j++)
- {
- Console.Write("*");
- }
- Console.WriteLine();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement