Write the following program in C++ to print:
Q1. The following pattern on the screen
@
@@
@@@
@@@@
Q2. To accept a name from the user and print it with a message.
Q3. Write a C++ program to accept percentage from the user and display it with a congratulations message. Eg: Congratulations you have scored xy% in the exam.
Q4. Write a program to accept a number from the user and identify whether the given number is odd or even.
Q5. Write a program to accept the radius of a circle from the user and display the area of circumference of the circle.
Syntax:
area of circle= PIradiusradius
Circumference= 2PI*radius
Q1. The following pattern on the screen
@
@@
@@@
@@@@
Q2. To accept a name from the user and print it with a message.
Q3. Write a C++ program to accept percentage from the user and display it with a congratulations message. Eg: Congratulations you have scored xy% in the exam.
Q4. Write a program to accept a number from the user and identify whether the given number is odd or even.
Q5. Write a program to accept the radius of a circle from the user and display the area of circumference of the circle.
Syntax:
area of circle= PIradiusradius
Circumference= 2PI*radius