Showing posts with label Area and Volume of Sphare. Show all posts
Showing posts with label Area and Volume of Sphare. Show all posts

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();
}

Popular Posts