fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int mark;
  7. cin >> mark;
  8. if (mark >= 90) {
  9. cout << "A" << endl;
  10. } else if (mark >= 80) {
  11. cout << "B" << endl;
  12. } else if (mark >= 70) {
  13. cout << "C" << endl;
  14. } else if (mark >= 60) {
  15. cout << "D" << endl;
  16. } else {
  17. cout << "F" << endl;
  18. }
  19.  
  20. return 0;
  21. }
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
A