Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
413 B
1
Indexable
Never

#include <iostream>
using namespace std;


//ostream &operator<< (ostream& out,const aboba &a) {
//   out << a.name << " " << a.surname;
//   return out;
//}
int pow(int a, int b) {
    int t=a;
    b--;
    while (b != 0) {
        a = t * a;
        b--;
    }
    return a;
}



int main()
{
    
    int a, b;
    cin >> a >> b;
    cout << pow(a, b);
    
   
    
  

}