Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- long long Pw(int i,int n)
- {
- if(n==0)
- {
- return 1;
- }else
- return i*Pw(i,n-1);
- }
- int main()
- {
- int x,y;
- scanf("%d %d",&x,&y);
- printf("%lld",Pw(x,y));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement