[Solved] How do I get 3 numbers on each line from 0-100?


It’s quite easy actually, something like:

for(int i = 0; i < 100; i++) {
    Console.WriteLine(string.Format("{0},{1},{2}", i, i+1, i+2));
}

It will goes from 0 to 101 because it always prints 3 numbers so the last iteration would be 99,100 otherwise. If you want it that way just edit i < 100 with i < 99.

1

solved How do I get 3 numbers on each line from 0-100?