G
Guest
using System
namespace ConsoleApplication1
public class Class
public static void Main(
for (int i = 1; i < 10; i++
for (int j = 1; j < 10; j++
for (int k = 1; k < 10; k++
Console.WriteLine(i+" "+j+" "+k)
the running result is
6 3
6 3
6 4
6 4
6 4
6 4
6 4
6 4
6 4
6 4
6 4
6 5
6 5
6 5
6 5
6 5
6 5
6 5
6 5
6 5
6 6
6 6
6 6
6 6
6 6
......
but i think the result should be like
1 1
1 1
1 1
.......
Really confuse about it, thank you so much for help!
namespace ConsoleApplication1
public class Class
public static void Main(
for (int i = 1; i < 10; i++
for (int j = 1; j < 10; j++
for (int k = 1; k < 10; k++
Console.WriteLine(i+" "+j+" "+k)
the running result is
6 3
6 3
6 4
6 4
6 4
6 4
6 4
6 4
6 4
6 4
6 4
6 5
6 5
6 5
6 5
6 5
6 5
6 5
6 5
6 5
6 6
6 6
6 6
6 6
6 6
......
but i think the result should be like
1 1
1 1
1 1
.......
Really confuse about it, thank you so much for help!