+ 3

Created a programmed to read a grade A, B, C, D and print either "Excellent","Honours","Good","pass","failed". Use Nested if ..e

can you help me please

17th Sep 2017, 8:43 PM
Fauzan Mazlam
Fauzan Mazlam - avatar
4 ответов
+ 4
char grade; // ... if (grade == 'A') { cout << "Excellent\n"; } else if (grade == 'B') { cout << "Honors\n"; } else if (grade == 'C') { cout << "Good\n"; } else { cout << "Failed\n"; } With what you gave in the question, this is what I came up with. Good luck!
20th Sep 2017, 1:48 AM
Zeke Williams
Zeke Williams - avatar
+ 4
tq so much
20th Sep 2017, 9:45 AM
Fauzan Mazlam
Fauzan Mazlam - avatar
+ 3
post the code..
19th Sep 2017, 10:09 AM
Challiebenz
Challiebenz - avatar
20th Sep 2017, 9:59 AM
Challiebenz
Challiebenz - avatar