Find the value of sphere a program make c++

My code here is Find the Value of sphere.

                 Here the code


  #include<stdio.h>

int main()
{
int tw = 4, pi1= 22, pi2= 7, r;

printf("Enter the 'r' : ");
scanf("%d",&r);
float res = tw*pi1*r*r;
float result = res/pi2;
printf("The Area of sphere is : %f",result);


}


Comments

Popular posts from this blog

Making a simple game using c++ if/else and finctions

calculator use html with source code

how to find area of rectangle in c++