Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int main()
- {
- int r;
- float area;
- cout<<"enter the radius of circle:"<<endl;
- cin>>r;
- area=3.14*r*r;// where 3.14 is the value of pi.
- cout<<"area of circle:"<<endl<<area<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement