Why is There is no output for the code?..it showed error in the "try it yourself" output | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
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(); } }

13th Sep 2017, 8:19 AM
Android Boi
Android Boi - avatar
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?
13th Sep 2017, 8:24 AM
Zephyr Koo
Zephyr Koo - avatar