Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Monday, 6 June 2016

PROBLEM 37:

Write a program that prompts the user for the radius of a sphere and prints its volume. [volume of Sphere=(4/3) * pi * radius3].

Code:

#include<stdio.h>
main ()
{
float radius;
float volume;
printf("Enter radius:");
scanf("%f",&radius);
volume=(4*3.14159*radius*radius*radius)/3;
printf("volume of Sphere is:%f",volume);

return 0;

}

Program Output:













For more problems click here

No comments:

Post a Comment