Wednesday 18 March 2015

wap for volume of circle

#include<stdio.h>
#include<conio.h>
#define pie 3.14
void main()
{
float r,volume;

clrscr();
printf("\n enter the value of radius ");
scanf("%f",&r);
volume=4*pie*r*r*r/3;
printf("volume=%f",volume);
getch();
}

No comments:

Post a Comment