Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int x, y, i, p;
- int main()
- {
- cout<<"x= "; cin>>x;
- cout<<"y= "; cin>>y;
- p = 1;
- for(i=0; i<y; i++)
- {
- p = p * x;
- }
- cout<<p;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement