Computer Science, asked by Harshabhat1358, 6 months ago

write a c++ program to find the area and circumference of a circle​

Answers

Answered by jew15
2
int main() { int rad;
2. float PI = 3.14, area, ci; printf("\nEnter radius of circle: ");
3. scanf("%d", &rad); area = PI * rad * rad;
4. printf("\nArea of circle : %f ", area); ci = 2 * PI * rad;
5. printf("\nCircumference : %f ", ci); return (0);
HOPE IT WILL HELP YOU
Explanation:
PLEASE FOLLOW ME AND MARK AS BRAINLIST ANSWER



Darmaidayxx and 4 more users found this answer helpful

THANKS
2
3.0
(2 votes)

Log in to add comment
Still have questions?

FIND MORE ANSWERS

ASK YOUR QUESTION
New questions in Computer Science
write an algorithm to check whether a number is positive or negative​
who is the basic unit for storing data in database designed using base.(a) Table ✔️(b) RDBMS(c) Data(d) DBMS ANSWER IS : TableI hope you like it. ​
write a c++ program to find the area and circumference of a circle​
what are the steps to change case in writer​
Please answer it it's computer question​
1+2=? plz help me guy​
write HTML program to apply different text style like bold Italic underline​
गिव एनी टू यूज़ ऑफ डीएचपी सेंसर​
Studentsnotified theDay cela Trespremprostory A Soldier willed in a battle field - hisCapried home - hest wife setunned with grief-heither entes non s …
Does anyone has Class 9 Computer Applications, Chapter-3(Types of Software). please share pics....​
Previous
Next
Answered by jeromeseejo73
4

#include<iostream>

using namespace std;

int main()

{

float rad, area;

float circum;

cout<<"Enter the Radius of Circle: ";

cin>>rad;

area = 3.14*rad*rad;

cout<<"\nArea of Circle = "<<area;

circum=2.0*3.14*rad;

cout<<"\nCircumference of Circle = "<<circum;

cout<<endl;

return 0;

}

Similar questions