Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Text;
- class task9
- {
- static void Main()
- {
- char copyRightSymbol = (char)169;
- Console.OutputEncoding = Encoding.Unicode;
- int triangleHeight = 3;
- int temp = triangleHeight * 2;
- int temp2 = triangleHeight * 2;
- int temp3 = 1;
- int h;
- int j;
- for (int i = 0; i < temp2; i += 2)
- {
- temp = (temp2 - temp3) % triangleHeight;
- for (j = temp; j > 0; j--)
- {
- Console.Write(" ");
- }
- for (h = 1; h < i + 2; h++)
- {
- Console.Write(copyRightSymbol);
- }
- Console.WriteLine();
- temp3++;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement