Advertisement
Josif_tepe

Untitled

Mar 14th, 2023
756
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main(){
  6.     int a, b;
  7.     cin >> a >> b;
  8.    
  9.     int stepen = 1;
  10.     for(int i = 1; i <= b; i++) {
  11.         stepen *= a;
  12.     }
  13.     cout << stepen << endl;
  14.     return 0;
  15. }
  16.  
  17.  
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement