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