Write a program the following equation: V = (4πr^3/3) and A = 4π r^2

Write a program the following equation
1. V = (4πr^3/3)
2. A = 4π r^2
 
Program:
#include<stdio.h>
#include<math.h>

main()
{
float v, a, r,sum=0;

printf("R = ");
scanf("%f", &r);

v=(4*3.1416*pow(r,3))/3;
a=(4*3.1416*pow(r,2));

printf("V= %.2f \nA=%.2f", v, a);

sum=a+v;
printf("\nSumission = %.2f", sum);

}

Loading
Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Flying Twitter Bird Widget By ICT Sparkle