C program to find the volume of a hemisphere.

 

01  #include <stdio.h>
02
03 int main()
04 {
05 float radius;
06 float volume;
07
08 printf("Enter radius of the hemisphere : ");
09 scanf("%f", &radius);
10
11 volume = (2* 3.14 * radius )/3;
12
13 printf("nVolume of hemisphere is : %.3f", volume);
14 return 0;
15 }
 
 OUTPUT:
Enter radius of the hemisphere : 5
Volume of hemisphere is : 10.467

Related Post

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.