/*The Volume of Sphere Program*/
#include"stdio.h"
#include"conio.h"
#define PI 3 .1416
void main();
{
clrscr();
float Radious,Sphere_Area,Sphere_Volume;
printf("Enter the value of Radious:");
scanf("%f",&Radious);?
Sphere_Area=4*PI*Radious:*Radious;
Sphere_Volume=(4/3)*PI*Radius*Radius*Radius;
printf("The Area of Sphere is=%f\n",Sphere_Area);
printf("The Volume of Sphere is=%f",Sphere_Volume);
getch();
}
#include"stdio.h"
#include"conio.h"
#define PI 3 .1416
void main();
{
clrscr();
float Radious,Sphere_Area,Sphere_Volume;
printf("Enter the value of Radious:");
scanf("%f",&Radious);?
Sphere_Area=4*PI*Radious:*Radious;
Sphere_Volume=(4/3)*PI*Radius*Radius*Radius;
printf("The Area of Sphere is=%f\n",Sphere_Area);
printf("The Volume of Sphere is=%f",Sphere_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.