Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- using namespace std;
- float x;
- int y;
- void potega(float x, int y)
- {
- float c = pow(x,y);
- cout<<c;
- }
- int main()
- {
- cout << "Podaj podstawe i wykladnik" << endl;
- cin >> x >> y;
- potega(x,y);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement