Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int r;
  6. float area;
  7. cout<<"enter the radius of circle:"<<endl;
  8. cin>>r;
  9. area=3.14*r*r;// where 3.14 is the value of pi.
  10. cout<<"area of circle:"<<endl<<area<<endl;
  11. return 0;
  12.  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement