0% found this document useful (0 votes)
17 views23 pages

C++ Programs

This document contains a computer practical file submitted by Divyansh Sevta of class XI-E. It includes 31 programs covering a range of concepts like checking if a number is a palindrome, finding the largest of 6 numbers using ternary operators, arithmetic operations, finding the sum of even numbers in a range, checking if a character is lowercase/uppercase, finding the greatest of three numbers, calculating simple interest, and more. For each program, the output is displayed.

Uploaded by

Divyansh Sevta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views23 pages

C++ Programs

This document contains a computer practical file submitted by Divyansh Sevta of class XI-E. It includes 31 programs covering a range of concepts like checking if a number is a palindrome, finding the largest of 6 numbers using ternary operators, arithmetic operations, finding the sum of even numbers in a range, checking if a character is lowercase/uppercase, finding the greatest of three numbers, calculating simple interest, and more. For each program, the output is displayed.

Uploaded by

Divyansh Sevta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 23

COMPUTER

PRACTICAL
FILE
-Divyansh Sevta

XI-E

Roll no – 20
Prog 1:WAP To check number is palindrom or not

Output:

Program 2: WAP to find biggest among 6 numbers using ternary

Output:
Program 3: To do arithmetic functions on two numbers

Output:

Program 4: WAP to find sum of even numbers between a range


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:

Program 7: WAP to calculate simple interest


Output:

Program 8: WAP to enter a character and print its ASCII value

Output:
Program 9: WAP to find area of circle

Output:

Program 10: WAP to show usage of relational operators


Output:

Program 11: WAP to find volume and CSA of cylinder

Output:
Program 12: WAP to convert temp in Fahrenheit to Celsius

Output:

Program 13: WAP to find square and cube of a given number


Output:

Program 14: WAP to calculate time taken to cover a distance

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:

Program 17:WAP to find Area of rectangle and square

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:

Program 22: WAP to display enumeration of days

Output:
Program 23: WAP to find commission of a person’s salary

Output:

Program 24: WAP to print alphabet triangle


Output:

Program 25: WAP to find Armstrong numbers between a range

Output:
Program 26: WAP to print diamond

Output :
Program 27: WAP to print Fibonacci series

Output:

Program 28: WAP to Floyd’s Triangle


Output:

Program 29: WAP to find HCF and LCM of two numbers


Output:

Program 30: WAP to print Pascal’s Triangle

Output:
Program 31: WAP to print reverse triangle

Output:

You might also like