0

I want to create a c++program to check for grades of students in a subject i want to use the switch statement can any one help

Int score Switch (score) {Case <=44: Cout<<"sorry you failed "<<endl; ) {Case >44<=49: Cout<<"grade c you passed"<<endl; } Any one can help me with this ...i dont know what the problem is I'm a c++ beginner

14th Sep 2019, 2:09 AM
Ghost
Ghost - avatar
1 Respuesta
0
I’m not too sure if a switch would be the best way to do this. You can definitely do this with regular ‘if’ and ‘else if’ statements.
14th Sep 2019, 2:45 AM
Glenn 🙏
Glenn 🙏 - avatar