Advertisement
MeehoweCK

Untitled

Apr 19th, 2021
812
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     cout << "Podaj dlugosc boku trojkata rownobocznego: ";
  9.     double a, h;
  10.     cin >> a;
  11.     h = pow(3, 0.5) * a / 2;
  12.  
  13.     cout << "Wysokosc tego trojkata wynosi " << h << ", a jego pole to " << a * h / 2 << endl;
  14.  
  15.     cout << "a^5 wynosi " << pow(a, 5) << endl;
  16.  
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement