Advertisement
Michal_Pilarski

zad9

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