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.

Expert's answer

#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;
}
LATEST TUTORIALS
APPROVED BY CLIENTS