MeehoweCK

Untitled

Apr 19th, 2021
504
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×