write a program that display on screen
(a)the character 'z' (b) the name 'mohan' (c) the number 1997
using (10 single count statement (2) muntiple count statment
using namespace std; //Main function int main() { char ch=' '; cout<<"(a)- the character 'z'"; cout<<" (b)- the name 'mohan'"; cout<<" (c)- the number 1997"; cout<<" Select one item: "; cin>>ch; switch(ch){ case 'a': cout<<"z"; break; case 'b': cout<<"mohan"; break; case 'c': cout<<"1997"; break; } getch(); return 0; }
Comments
You're welcome. We are glad to be helpful. If you really liked our service please press like-button beside answer field. Thank you!
A nice website
Leave a comment