Advertisement
Guest User

Untitled

a guest
May 19th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <iostream>
  2. #include <stdlib.h>
  3. #include <math.h>
  4.  
  5. using namespace std;
  6.  
  7. const double pi = 3.1415926;
  8.  
  9. int main()
  10. {
  11.     float r;
  12.    
  13.     cout << "Enter the radius value: ";
  14.     cin >> r;
  15.     cout << "The square is: " << pi * pow(r, 2) << endl;
  16.    
  17.     return EXIT_SUCCESS;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement