SHARE
TWEET

Untitled

a guest May 19th, 2017 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
Want to get better at C++?
Learn to code C++ in 2017
Top