this is a question from exam....and my answer is after the question
is it write or not?
please tell me if i go wrong.
question:Rewrite the following switch statement using if statements:
switch(grade)
{
case „A‟:
case „B‟: cout << “good”; break;
case „C‟: break;
case „D‟:
case „F‟: cout << “not good”; break;
default: cout << “invalid”; break;
}