+ 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
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!
+ 4
tq so much
+ 3
post the code..