Hi,
If I were to write a program as follow:
if (x>90)
cout<<"Excellent"<<endl;
else if (x>80)
cout<<"good"<<endl;
else if (x>50)
cout<<"average"<<endl;
else
cout<<"bad"<<endl;
And i want to convert it to using switch case, how should i do it? I know how to use switch for constants like 1,2 and characters but I am not sure how to use it incorporating the '>' and '<' sign in. Thank you.