fork(23) download
  1. using System;
  2. public class Test
  3. {
  4. public static Main() : void
  5. {
  6. def solve() : void {
  7. def i = int.Parse(Console.ReadLine());
  8. unless (i == 42) {
  9. Console.WriteLine(i);
  10. solve();
  11. }
  12. }
  13. solve();
  14. }
  15. }
Success #stdin #stdout 0.08s 13528KB
stdin
1
2
10
42
11
stdout
1
2
10