0

C++ program that can display a grade when you input mark of a student

29th Dec 2019, 12:11 AM
Yonatan
7 ответов
+ 2
Yonatan if it only display last one, it seems you have used switch case and forgot to mention break statement.... Read about break in line with switch to get rid of your issue. And you can also use if else ladder as mentioned by Avinesh instead of switch case... Both of them switch case and if else ladder has their own pros and cons.
29th Dec 2019, 5:49 PM
Ketan Lalcheta
Ketan Lalcheta - avatar
+ 1
Kindly use an if else ladder and assign the marks range inside the if statement and print a corresponding grade for it.
29th Dec 2019, 4:39 AM
Avinesh
Avinesh - avatar
+ 1
We might be able to correct your mistakes
29th Dec 2019, 7:37 AM
Ritwik
0
Don't cheat You have to do your homeWorks without cheating :)
29th Dec 2019, 12:39 AM
Abdol Hashimi
Abdol Hashimi - avatar
0
It is not homework am just practicing by my self but it only displays the last one
29th Dec 2019, 12:43 AM
Yonatan
0
Can you please send your code
29th Dec 2019, 7:36 AM
Ritwik