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. }
Success #stdin #stdout 0.02s 26272KB
stdin
1
2
10
42
11
stdout
1
2
10