Write C-program to find area of circle.
Answers
Answered by
2
include < stdio.h >
#include < conio.h > #define PI 3.141
int main()
{
float radius, area;
printf("Enter radius of circle\n");
scanf("%f", & radius);
area = PI * radius * radius;
printf("Area of circle : %0.4f\n", area);
getch();
return 0;
}
Answered by
0
Answer:
#include<constream.h>
void main()
{
clrscr();
float area,radius;
cout<<"\n Enter radius:";
cin>>radius;
area = 3.14*radius*radius;
cout<<"\n Area of circle ="<<radius;
getch();
}
Similar questions