Ass 1
Ass 1
Date: 26/09/2024
Assignment – 1
1. WAP to input the radius value of any circle through the keyboard and then find out
its area.
2. WAP to find out the area of any rectangle. The length and breadth of the rectangle
must be inputted by the user.
3. WAP to input the three sides of any triangle and then find out its area.
4. WAP to find the area and volume of a sphere.
5. WAP to swap the values of two variables using a third variable.
6. WAP to swap the values of two variables without using a third variable.
7. WAP to find the average of 3 entered numbers.
8. WAP to input the principal, time, and rate of interest. Calculate the simple interest.
9. WAP to convert temperature in Fahrenheit to Celsius.
10. Find the percentage of marks obtained by a student by entering the marks secured
by the student in 5 subjects. Consider the total mark in each subject is 100.
11. Write a program to find the sum of the individual digits of any entered three-digit
positive number.
12. WAP to input the CGPA obtained by the student and find the equivalent
percentage marks.