Tuesday, 9 July 2013

Program to Calculate Volume of a Sphere

#include<stdio.h>
#include<conio.h>
void main()
{
int r,volume;
clrscr ();
printf("Enter the number");
scanf("%d",&r);
volume=(4*3.14+r*r*r)/3;
printf("%d",volume);
getch();

}

No comments:

Post a Comment