63 076
Assignments Done
99,1%
Successfully Done
In July 2018

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.”
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;
}

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 first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions