Find Total Surface Area of Sphere
In this example, you will get and learn the program code to find the Total Surface Area of Sphere in c programming.
What is Sphere
A sphere is a rounded three-dimensional shape, like a football. It is the shape of a perfectly round object in three-dimensional space, such as a globe or a bubble.
A sphere is a three-dimensional object. It has surface area and volume.
![Total Surface Area of Sphere Total Surface Area of Sphere](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxcExLKRIHJHFHwl-aqig4LZ0vEtxPeM_PQ8AbXPmiuMLCvKtofIWFy0NYDuzDNYYDqpxhCPaVtyqEvNs5pEVPBKC_UZI6g-5f7olqaKL-NuIjsFquqxyydpJkiQluf5PxvNq6tD10f54f1qK7Xw1KrkasbteETrPJQfdWjUFv0qpsFv4-3CDZLzni/s16000/sphere-shape.png)
Total Surface Area of Sphere Formula
Surface Area of Sphere = 4πr2
Algorithm
Step 1: Input the radius of sphere.
Step 2: Calculate the surface area of sphere using the formula 4*3.14*r*r.
Step 3: Print the surface area of sphere.
Example code of Total Surface Area of a Sphere
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | //Surface Area of Sphere Calculator in C #include<stdio.h> #include<conio.h> #define PI 3.14159 void main( ) { float sa,r; clrscr( ); printf(“nEnter radius of Sphere :”); scanf(“%f”,&r); sa=4*PI*r*r; printf(“\nSurface area of Sphere=%f”,sa); getch( ); } |
Output
Enter radius of sphere : 5
Surface area of Sphere = 314.200012
Check out our other C programming Examples