Computer Science, asked by dhruvagarwal2pkt, 6 months ago

write a c++ program to input the radius of a circle if its square is greater then 99 calculate and display the circumference of the circle otherwise calculate and display its area

circumference = 2*3.14*radius. area = 3.14* radius ^2

Answers

Answered by AnindaBasu
0

Answer:

#include<iostream.h>

void main( )

{

float r,area,cir;

cout<<"Enter the value of Radius of Circle "<<endl;

cin>>r;

if(r*r>99)

{

cir=2*3.14*r;

cout<<"Circumference of Circle "<<cir<<endl;

}

else

{

area=3.14*r*r;

cout<<"Area of Circle "<<area<<endl;

}

getch();

}

Similar questions