Advertisement
Ravenbvutt

Untitled

Sep 26th, 2017
10,059
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. // LAB #1
  2. #include <iostream>
  3. #include <math.h>
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. double PI,R,square;
  9. PI = 3.14159;
  10. cout << "Input length:" << endl;
  11. cin >> R;
  12. square = 2*PI*pow(R,2);
  13. cout << "Square: " << square << endl;
  14. system("pause");
  15. return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement