blob: 052dab9f2a0b5208d6716b098dc2f4acda2bd6de (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include <iostream>
int main() {
unsigned int a, x;
std::cin >> a >> x;
unsigned int product = 1;
for (unsigned int power = 1; power <= x; power++) {
product *= a;
}
std::cout << product;
return 0;
}
|