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