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