Feed Headline Animator

Input the radius of a sphere. Compute its valume and surface area(“Formula for surface area=4 TT r2 and volume=4/3TTr3 and TT=3.1417(Scanf)

main( )
{
float r,v, area;
clrscr();
printf(“Enter radius of sphere?”);
scanf(“%F”,&r);
area=4.0*3.1417*r*r;
v=(4.0/3.0)*3.1417*r*r*r;
printf(“Volume of sphere =%f/n”,v);
printf(“area of sphere=%f/n”,area);
getch();
}


Posted by: Wasim Javed

No comments:

Post a Comment