Maplewing

4/23 C++: const

Apr 22nd, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.17 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main(){
  5.     const double PI = 3.1415926;
  6.    
  7.     double r;
  8.     cin >> r;
  9.     cout << r*r*PI << endl;
  10.    
  11.     return 0;
  12. }
Add Comment
Please, Sign In to add comment