3. Convert the following if–else structure into an equivalent switch–case structure.
#include using namespace std; int main()
{
char grade; grade = ‘E’;
if (grade == ‘A’)
cout <“>
else if (( grade == ‘B’) || (grade == ‘C’))
cout \n”;
else if ((grade == ‘D’) || (grade == ‘E’)) cout \n”;
else
}
“>“>
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here