MarcinKrol

Zad9

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