14
1
using System;
2
public class DoWhileLoopExample
3
{
4
public static void Main(string[] args)
5
{
6
int i = 1;
7
8
do{
9
Console.WriteLine(i);
10
i++;
11
} while (i <= 10) ;
12
13
}
14
}
Cached Result
1 1
1 2
1 3
End of round 1 for outer loop
2 1
2 2
2 3
End of round 2 for outer loop
3 1
3 2
3 3
End of round 3 for outer loop
1 2
1 3
End of round 1 for outer loop
2 1
2 2
2 3
End of round 2 for outer loop
3 1
3 2
3 3
End of round 3 for outer loop