Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок0
Why is There is no output for the code?..it showed error in the "try it yourself" output
static void DrawPyramid(int n) { for (int i = 1; i <= n; i++) { for (int j = i; j <= n; j++) { Console.Write(" "); } for (int k = 1; k <= 2 * i - 1; k++) { Console.Write("*" + " "); } Console.WriteLine(); } }
1 ответ
+ 6
I don't see any problem in your code. Perhaps you can paste the code @ Code Playground and try to call the method from main?