0
Can you solve write a program in c++ to print area of circle
3 Respostas
0
int main(){
double rad;
cout << "Radius of the circle:" ;
cin >> rad;
cout << "The area of the circle is " << rad*rad*3.14 << endl;
return 0;
}
0
this is the main function you have to put in header youraelf
0
int main(){
double r,pi=3.14,area=0;
cout<<"ENTER THE RADIUS"<<endl;
cin>>r;
area=r*r*pi;
cout>>"AREA = ">>area;
return 0;
}