0

Can you solve write a program in c++ to print area of circle

18th Nov 2016, 10:48 AM
Aniket Deshmukh
3 Respuestas
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; }
18th Nov 2016, 11:24 AM
shupack
0
this is the main function you have to put in header youraelf
18th Nov 2016, 11:25 AM
shupack
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; }
18th Nov 2016, 2:14 PM
Dhruv Saxena
Dhruv Saxena - avatar