Computer Science, asked by vijay4574, 11 months ago

write a program to read radius of the circle and find circumference and area of the circle

Answers

Answered by abhi123hero
2
circumference = pd or 2pr
area = pr square
r =d/2

vijay4574: help me to solve this
Answered by siddhartharao77
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