Answer to Question #13797 in C++ for yash

Question #13797
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
1
Expert's answer
2012-08-30T09:52:08-0400
#include <iostream>
#include <conio.h>
#include <math.h>

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

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

Assignment Expert
19.03.13, 18:40

You're welcome. We are glad to be helpful. If you really liked our service please press like-button beside answer field. Thank you!

Mohammead Zakir Hussain
18.03.13, 08:40

A nice website

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS