Advertisement
AquaBlitz11

[t003] power

Oct 9th, 2018
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include <stdio.h>
  2. long long Pw(int i,int n)
  3. {
  4.     if(n==0)
  5.     {
  6.         return 1;
  7.     }else
  8.         return i*Pw(i,n-1);
  9.  
  10. }
  11. int main()
  12. {
  13.     int x,y;
  14.     scanf("%d %d",&x,&y);
  15.     printf("%lld",Pw(x,y));
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement