Jan 26, 2013

Area and Volume of Sphare

Area and Volume of Sphare

#include<stdio.h>
#include<conio.h>
#define P1 3.14
void main()
{
clrscr();
int D;
float surface,volume;
surface=P1*D*D;
volume=(P1*D*D*D)/6.0;
printf("Surface Area=%.2f\n",surface);
printf("Volume=%.2f",volume);
getch();
}

No comments:

Post a Comment

Thank you for visit this site. You will get many programming news from here and learn programming very easily.

Popular Posts