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