C++ Programs
C++ Programs
PRACTICAL
FILE
-Divyansh Sevta
XI-E
Roll no – 20
Prog 1:WAP To check number is palindrom or not
Output:
Output:
Program 3: To do arithmetic functions on two numbers
Output:
Program 5: WAP to check if a character is lowercase or uppercase and convert it into its opposite
Output:
Program 6: WAP to find greatest of three numbers using if statement
Output:
Output:
Program 9: WAP to find area of circle
Output:
Output:
Program 12: WAP to convert temp in Fahrenheit to Celsius
Output:
Output:
Program 15: WAP swap two numbers without using third variable
Output:
Program 16: To calculate square or cube if the number of digits in the number is odd or even
respectively
Output:
Output:
Program 18: Menu driven program to find are of circle or cube
Output:
Program 19: WAP to draw a triangle of ‘*’
Output:
Program 20: WAP to check a no. is positive or negative and if its positive then check the no. of digits
in it
Output:
Program 21: WAP to enter a no. from user and display the day
Output:
Output:
Program 23: WAP to find commission of a person’s salary
Output:
Output:
Program 26: WAP to print diamond
Output :
Program 27: WAP to print Fibonacci series
Output:
Output:
Program 31: WAP to print reverse triangle
Output: