CJCoding With Joseph
15free / daySign inCreate account
Back to Code Walkthrough

Nested Loop Triangle

C# code walkthrough · Question 39
mediumLoops

Code

Read carefully. What does this print?
1for (int i = 1; i <= 3; i++)
2{
3 for (int j = 1; j <= i; j++)
4 {
5 Console.Write("*");
6 }
7 Console.WriteLine();
8}

Your answer