Practice Program of Input/Output in C++
Q1-Write a program that prints your Introduction.
Q2-Write a program that prints the table
Q3-Write a program that prints any cartoon character using the symbol.
Q4-Write a program that prints all information about Computer.
Q5-Write a program that prints the calendar.
Q6-Write a program that prints your mark sheet.
Q7-Write a program that prints Circle, Squares, Rectangle, and Triangle using Symbol.
Q8-Write a program that stores your age in variable and print as "My age is 19"
Q9-Write a program that inputs 2 numbers and prints the Sum of two numbers.
Q10-Write a program that inputs 2 numbers and prints the Sub of two numbers.
Q11-Write a program that inputs 2 numbers and prints the Mul of two numbers.
Q12-Write a program that inputs 2 numbers and prints the Div of two numbers.
Q9-Write a program that inputs 2 numbers and prints the sum, sub, div, and mul of two numbers all in one program.
Q10-Write a program that prints 20% of 100 marks.
Q11-Write a program that prints 20% of 200 marks.
Q12-Write a program that inputs the cost of all items and gives a 20% discount on the total cost and display.
Q13-Write a program that calculates the area of a Circle.
Q14-Write a program the calculate the area of a Triangle.
Q15-Write a program the calculate the area of a Rectangle.
Q16-Write a program the calculate the area of a Square.
Q17-Write a program that inputs the total marks and obtained marks. It finds the percentage of obtained marks.
Q18-Write a program to display the following output using a single cout statement.
*
* *
* * *
* * * *
Q19-Write a program to show the following output using one cout statement.
1 2 3 4 5
6 7 8 9 10
Q20-Write a program that displays
C
O M
P U T
E R I S
A M A C H
I N E
Q30-Write a program that displays the following output
Numbers Square Cube
1 1 1
2 4 8
3 9 27
4 16 64
5 25 125
Q31-Write a program that takes input in Fahrenheit and converts it into Celsius.
Q32-Write a program that takes input in Celsius and converts it into Fahrenheit.
Q33-Write a program that inputs two numbers swaps values and then displays them.
Q34-Write a program that inputs the distance traveled and the speed of the vehicle. It calculates the time required to reach the destination and displays it.
Q35-Write a program that inputs time in seconds and converts it into the hh-mm-ss format.
Q36-Write a program that converts a person’s height from inches to centimeters using the formula 2.54*height.
Q37-Write a program that inputs a three-digit number from the user and displays it in reverse order. For example, if the user enters 123, it displays 321.
Q38-Write a program that will prompt the user to enter a number of hours. It computes and displays the number of weeks, days, and hours within the input number of hours.
Q39-Write a program that asks a question from the user and takes answers.
Q40-Write a program that takes input marks of the different subjects from the user and prints the total marks obtained marks and percentage
Q41-Write a program that swaps 2 numbers
Q42-Write a program in C++ to compute the total and average of four numbers.
Q43-Write a program that prints the tables of n number
Q44-Write a program that takes questions from the user and takes the answer.
Q45-Write a program that prints the tables of n number