C Programming
1. WAP to calculate the area of a rectangle in c. [Hints: a = l x b] #include void main() { int l, b, a; printf (“Enter Length: ”); scanf (“%d”, &l); printf (“Enter Breadth: “); scanf (“%d”, &b); a = l * b; printf (“The area is %d”, a); getch(); } 2. WAP to calculate the simple interest in c. [Hints: i= (ptr)/100] #include int main() { float p, t, r, i; printf (“Enter principal time and rate: ”); scanf (“%f %f %f”, &p, &t, &r); i= (p*t*r)/100; printf (“The interest is %f”, i); return 0; } 3.WAP to calculate the average of 3 number in c. [Hints: av= (a+b+c)/3] #include int main() { float a, b, c, av; printf (“Enter 3 numbers: ”); scanf (“%f %f %f”, &a, &b, &rc); av= (a+b+c)/3; printf (“The average is %f”, av); return 0; } 4. WAP to calculate the volume of cylinder in c. [Hints: v= pi*r*r*h] #include int main() { float pi=3.14, r, h, v; printf (“Enter radius and height: ”); scanf (“%f %f ”, &r, &h); v...