Write a program in c to find the area and perimeter of a circle
Answers
Answered by
5
hii here is ur answer mate_________________
● this program will read radius of a circle and find the find thr area and perimeter of the circle .
☆Area of circle calculated by PI* R^2
☆ peimeter of circle calculated by 2*PI* R
" here R is the radius of the circle , in this program we have a macro defined as pi with the value of pi and variables red holds the radius entered by the user.
dear ☺
i hope its helpful.
Thanks ✌
ad plez mark as a brainlist ☹
● this program will read radius of a circle and find the find thr area and perimeter of the circle .
☆Area of circle calculated by PI* R^2
☆ peimeter of circle calculated by 2*PI* R
" here R is the radius of the circle , in this program we have a macro defined as pi with the value of pi and variables red holds the radius entered by the user.
dear ☺
i hope its helpful.
Thanks ✌
ad plez mark as a brainlist ☹
Attachments:
Answered by
1
Answer:
#include<constream.h>
void main ();
{
clrscr();
float area, r, cir;
cout<<"\nEnter radius";
cin>>r;
area=3.14*r*r;
cir=2*3.14*r;
cout<<"\nArea="<<area;
cout<<"\ncircumference="<<cir;
getch();
}
Similar questions