Answer to Question #57340 in C++ for Sajid

Question #57340
Q, write a program to display:
You are 18 years old.
You are students of mathematics
Q.2: write a program to display the following output using a single cout statement.
Subjects Marks
Mathematics 90
Computer 80
English 70
Q.3: write a program which accepts a character and display its ASCII value.
1
Expert's answer
2016-01-19T07:40:20-0500
#include <iostream>

int main()
{
std::cout << "You are 18 years old\nYuo are students of mathematics\n";
return 0;
}

#include <iostream>

int main()
{
std::cout << "Subjects Marks\nMathematics 90\nComputer 80\nEnglish 70\n";
return 0;
}
#include <iostream>

int main()
{
char ch;
std::cin >> ch;
std::cout << int(ch) << std::endl;
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.01.16, 14:41

Dear Sajid please write a new question. Best regards

sajid
17.01.16, 21:40

Q.write a program to display the following output using a single cout statement. Subjects Marks Mathematics 90 Computer 80 English 70

sajid
17.01.16, 21:37

Q: write a program which accepts a character and display its ASCII value.

sajid
17.01.16, 21:35

Q, write a program to display: You are 18 years old. You are students of mathematics

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS