- WAP to input two numbers and find sum.
Solution: C
PHP
C#
- WAP to input two numbers and find multiplication.
Solution: C
PHP
Python
- WAP to input number and calculate its square and cube.
Solution: C
Python
- WAP to input length and breadth of a rectangle and calculate its area. Area=Length*Breadth.
Solution: C
Python
- WAP to input radius and calculate area of circle and circumference of a circle. Area of circle = 3.14*r*r, Circumference of circle = 2*3.14*r
Solution: C
Python
- WAP to input radius and height of a cylinder and calculate volume of cylinder. Volume=3.14*r*r*h
Solution: C
- WAP to input principal, rate, time and calculate Simple Interest. Simple Interest=Principal*Rate*Time/100.
Solution: C
Python
- WAP to Input 5 subject marks of a student and find total marks and percentage obtained by the student.
Solution: C Python
- WAP to convert temperature from Fahrenheit to Celsius. C=(F-32)*5/9.
Solution: C
PHP
Java
- WAP to convert temperature from Celsius to Fahrenheit. F=C*9/5+32.
Solution: C
- WAP to Input two numbers and swap them.
Solution: C
- WAP to Input two numbers and swap them without using 3rd variable.
Solution: C
- WAP to Input distance (in km) and convert in meter, centimeter, and inches.
Solution: C Python Java
- WAP to Input minutes and convert in hours and minutes.
Solution: C
- WAP to input total number of days and convert it into years, months, weeks, and days.
Solution: C