THE 'C'- ARCHIE STYLE...
Thursday, March 31, 2011
Volume of sphere
#include< math.h >
#define PI 3.14
void main()
{
float v,r;
clrscr();
printf("enter value of radius");
scanf("%f",&r);
v=(4/3.0)*PI*pow(r,3);
printf("vol=%f",v);
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment