fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. int n;
  8. test(null);
  9. while ((n = int.Parse(Console.ReadLine()))!=42)
  10. Console.WriteLine(n);
  11. }
  12.  
  13. public static void test(string json){
  14. }
  15. }
  16.  
Success #stdin #stdout 0.04s 30112KB
stdin
1
2
3
42
10
stdout
1
2
3