fork download
  1. using System;
  2. public class Test
  3. {
  4. public static void Main()
  5. {
  6. for (int soluce = 0; soluce < 16; ++soluce)
  7. {
  8. string solution = Convert.ToString(soluce, 2).PadLeft(4, '0');
  9. Console.WriteLine(solution);
  10. }
  11. }
  12. }
Success #stdin #stdout 0.02s 33912KB
stdin
Standard input is empty
stdout
0000
0001
0010
0011
0100
0101
0110
0111
1000
1001
1010
1011
1100
1101
1110
1111