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