fork download
  1. from sys import stdin
  2.  
  3. for line in stdin:
  4. n = int(line)
  5. if n == 10:
  6. break
  7. print(n + 1)
  8.  
Success #stdin #stdout 0.07s 14004KB
stdin
1
stdout
2