daily pastebin goal
42%
SHARE
TWEET

Untitled

a guest Nov 22nd, 2017 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <cmath>
  3. #include <math.h>
  4. #define M_PI           3.14159265358979323846
  5. using namespace std;
  6.  
  7. int main() {
  8.     // your code goes here
  9.     int a,d,b;
  10.     float p;
  11.     cout << "Vnesi vrednost za plostinata na krug:\n";
  12.     cin >>a;
  13.     p = sqrt(a/M_PI);
  14.             cout<<"Perimetar na pravoagolnikt e:"<<2*p*M_PI;
  15.  
  16.     return 0;
  17. }
RAW Paste Data
Top