Question #25058

Modify Program to accept both lower and uppercase letters as codes. For
example, if a user enters an m or an M, the program should display the message “The
item is military grade.”

Expert's answer

#include <iostream>
using namespace std;

int main() {
char x;
cin >> x;
if (x=='m' || x=='M')
cout << "The item is military
grade";
return 0;
}
LATEST TUTORIALS
APPROVED BY CLIENTS