fork download
  1. x = int(input("Please enter an integer: "))
  2.  
  3. if x < 0:
  4. ... x = 0
  5. ... print('Negative changed to zero')
  6. ... elif x == 0:
  7. ... print('Zero')
  8. ... elif x == 1:
  9. ... print('Single')
  10. ... else:
  11. ... print('More')
Runtime error #stdin #stdout 0.02s 5852KB
stdin
42
stdout
Standard output is empty