fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int mark;
  6. cin >>mark;
  7. if (mark>=90)
  8. cout<<'a';
  9. else if (mark>=80)
  10. cout<<'b';
  11. else if (mark >=70)
  12. cout<<'c';
  13. else if (mark>=60)
  14. cout<<'d';
  15. else
  16. cout<<'f';
  17.  
  18. }
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
a