Answer to Question #25058 in C++ for red rose

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.”
1
Expert's answer
2013-02-26T09:24:39-0500
#include <iostream>
using namespace std;

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

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS