Formula of surface area of sphere:
Surface_area = 4 * Pie * r2
Formula of volume of sphere:
Volume = 4/3 * Pie * r3
Pie = 22/7 or 3.14159265358979323846264338327950288419716939937510...
C code:
#include
#include
int main(){
float r;
float surface_area,volume;
printf("Enter radius of the sphere : ");
No comments:
Post a Comment