(Move to ...)
▼
Program for computing the volume of a sphere
# include <iostream.h>
int main( )
{
float r, volume, pi = 3.14152;
cout << "\n Enter radius value : " ;
cin >> r ;
volume = (4 * pi * r * r * r) / 3 ;
cout <<"\n volume : "<<volume ;
return 0;
}
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment