Laasya bought a new volleyball in the sports shop. It looks like a medium size. She somehow found the radius of the sphere. But she would like to know the volume of that ball. Can you help him in finding the Volume of the ball?
#include <stdio.h>
int main()
{
float radiusofball,volumeofball;
scanf("%f",&radiusofball);
volumeofball=(4.0/3.0)*3.14*radiusofball*radiusofball*radiusofball;
printf("%f",volumeofball);
return 0;}
Comments
Post a Comment