Advertisement
piker

Untitled

Dec 4th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. #define PI 3.14
  2. #include <cstdlib>
  3. #include <cstring>
  4. #include <iostream>
  5. #include <iostream>
  6.  
  7. using namespace std;
  8.  
  9. int main() {
  10.   int r;
  11.   float s, p;
  12.   cin >> r;
  13.   s = PI * r * r;
  14.   p = 2 * PI * r;
  15.   cout << "masahat =" << s << " mohit = " << p;
  16.   return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement