Hi
I got a switch statement which, as well as the sentance it prints out, it also prints out the switch number for example
hello
2
here is the function code for the switch statment,
What am I doing wrong for that to print out?
Thank you.Code:int rightremark() { int statements; statements = 1 + rand() % 4; switch (statements) { case 1: cout << "Very good" << endl; break; case 2 : cout << "Excellent" << endl; break; case 3: cout << "Nice Work"<< endl; break; case 4: cout << "Keep up the good work" << endl; break; } return statements;