write a program to read radius of the circle and find circumference and area of the circle
Answers
Answered by
2
circumference = pd or 2pr
area = pr square
r =d/2
area = pr square
r =d/2
vijay4574:
help me to solve this
Answered by
3
Sample program for Area and circumference of circle:
#include<iostream>
using namespace std;
int main()
{
float Area,cir,radius;
cout << "Enter the radius : ";
cin >> radius;
Area = 3.14 * radius * radius;
cir = 2 * 3.14 * radius;
cout << "Area of the circle = " << Area << "\n";
cout << "Circumference of circle = " << cir;
return 0;
}
Output:
Enter the radius : 3
Area of the circle = 28.26
Circumference of circle = 18.84.
Hope it helps!
Attachments:
Similar questions
Math,
6 months ago
Math,
6 months ago
English,
6 months ago
Environmental Sciences,
11 months ago
English,
1 year ago