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

9/14/2019 2:09:59 AM

Ghost

1 Answer

New Answer

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.