Lucian_Adrian

#1681 Power

Sep 13th, 2021
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1.  
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7.  
  8. {
  9.  
  10. long int A,B,x,P=1;
  11.  
  12. cin>>A>>B;
  13.  
  14. for(x=1;x<=B;x++) P=P*A;
  15.  
  16. cout<<P;
  17.  
  18. return 0;
  19.  
  20. }
  21.  
  22.  
Advertisement
Add Comment
Please, Sign In to add comment