josiftepe

Untitled

Jan 13th, 2021
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1.     #include <iostream>
  2.     using namespace std;
  3.  
  4.     int main()
  5.     {
  6.         int radius; // go deklarirame radiusot
  7.         cin >> radius; // go vnesuvame radiusot
  8.         double PI = 3.1415; // konstanta pi
  9.         double perimetar = 2 * radius * PI;
  10.         double plostina = radius * radius * PI;
  11.         cout << perimetar << " " << plostina << endl;
  12.         return 0;
  13.     }
  14.  
Advertisement
Add Comment
Please, Sign In to add comment