fork download
  1. x=7
  2. if x<0 or x>=20:
  3. print(0)
  4. elif 0<x<5:
  5. print(x)
  6. elif 5<x<10:
  7. print(3*x-5)
  8. elif 10<x<20:
  9. print(0.5*x-2)
Success #stdin #stdout 0.01s 7088KB
stdin
Standard input is empty
stdout
16