fork download
  1. using System;
  2. using System.Linq;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. foreach(var n in Enumerable.Range(0, 9))
  9. {
  10. Console.WriteLine((n % 3).ToString() + ", " + (n / 3).ToString());
  11. }
  12. }
  13. }
Success #stdin #stdout 0.04s 24168KB
stdin
Standard input is empty
stdout
0, 0
1, 0
2, 0
0, 1
1, 1
2, 1
0, 2
1, 2
2, 2