Find surface area of sphere - C Program

C program to find surface area of sphere.

Solution:

Formula: Surface Area of Sphere = (4/3) * 3.14 * r * r

#include<stdio.h>
int main()
{
     int r;
     float sur_area_sphere;
     printf("Enter Radius : ");
     scanf("%d",&r);
     sur_area_sphere = (4/3.0)*3.14*r*r;
     printf("\nSurface Area of Sphere = %.2f", sur_area_sphere);
     return 0;
}


Output:

area of sphere