wiktormadera

zad9

Apr 2nd, 2020
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #include <iostream>
  2. #include <math.h>
  3. using namespace std;
  4.  
  5. float POTEGA(float a,float b)
  6. {
  7.     float c;
  8.     c=pow(a,b);
  9.     return c;
  10. }
  11.  
  12. int main()
  13. {
  14. float a,b;
  15.     cout << "Podaj liczbe x: " << endl;
  16.     cin >> a;
  17.     cout << "Podaj liczbe y: " << endl;
  18.     cin >> b;
  19.     cout << POTEGA(a,b);
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment