Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int g;
- cout << "Enter your GWA: ";
- cin >> g;`
- if (g>=80)
- {
- cout << "Grade: A+";
- }
- else
- {
- if (g>=70)
- cout << "Grade: A";
- else
- {
- if (g>=60)
- cout << "Grade: B";
- else
- {
- if (g>=40)
- cout << "Grade: C";
- else
- {
- cout << "Grade: F";
- }
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement