Formula Based Programs
1) WAJP to find the Square of a number.
2) WAJP to find the Cube of a number.
3) WAJP to find the Sum of two numbers. [s=a+b]
4) WAJP to find the Difference of two numbers. [d=a-b]
5) WAJP to find the Product of two numbers. [p=a*b]
6) WAJP to find the Quotient of two numbers. [q=a/b]
7) WAJP to find the Remainder of two numbers. [r=a%b]
[Please take int data type.]
8) WAJP to find the Average of Three numbers.
9) WAJP to find the Square and Cube of a numbers.
10) WAJP to find the Sum, Difference, Product and Average of two numbers.
11) WAJP to find the Area of Rectangle. [a=l*b]
12) WAJP to find the Area of Triangle. [a=b*h/2]
13) WAJP to find the Area of Circle. [a=pi*r*r]
14) WAJP to find the Perimeter of Rectangle. [p=2*(l + b)]
15) WAJP to find the Perimeter of Triangle. [p=s1+s2+s3]
16) WAJP to find the Circumference of Circle. [c=2*pi*r]
17) WAJP to calculate the Total and Percentage of 3 subjects’ marks. [t=p+c+m] [per=t*100/300]