fork download
  1. x=int(input())
  2. if x>=90 and x<=100:
  3. print("A")
  4. elif x>=80 and x<90:
  5. print("B")
  6. elif x>=60 and x<80:
  7. print("C")
  8. elif x<60 and x>=0:
  9. print("D")
  10. else:
  11. print("error")
Success #stdin #stdout 0.06s 14140KB
stdin
103
stdout
error