Write a c program to Find out Area and Volume of sphere
#include<stdio.h>
#include<conio.h>
void main()
{
int x;
float area,volume;
clrscr();
printf("Enter the value of r= \n");
scanf("%d",&x);
area=4*3.14*x*x;
printf("Area of the spare = %f\n",area);
volume=(4/3.0)*3.14*x*x*x;
printf("Volume of the sphere= %f\n",volume);
getch();
}
Thank You for Your Time Seeya later
No comments:
Post a Comment