Advertisement
DrDiagramm

Untitled

Feb 7th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. int main()
  2. {
  3. int a;
  4.  
  5. cout << "Score? \n";
  6. cin >> a;
  7.  
  8. cout << "your Score is " << a << endl;
  9.  
  10. if (a==100) {
  11. cout << "Perfect Score";
  12. }
  13.  
  14. if (a < 101 && a > 89) {
  15. cout << "Grade = A";
  16. }
  17. if (a < 90 && a > 79) {
  18. cout << "Grade = B";
  19. }
  20. if (a < 80 && a > 69) {
  21. cout << "Grade = C";
  22. }
  23. if (a < 70 && a > 59) {
  24. cout << "Grade = D";
  25. }
  26. if (a < 60 && a >= 9) {
  27. cout << "Grade = F";
  28. }
  29. cout << endl;
  30. system("pause");
  31. return 0;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement