Untitled
unknown
plain_text
2 years ago
280 B
8
Indexable
#include <iostream>
#include <math.h>
#include <string.h>
using namespace std;
long long stepen(int a,int b) {
long long stpn = 1;
while (b > 0) {
stpn *= a;
b--;
}
return stpn;
}
int main() {
int a, b;
cin >> a >> b;
cout << stepen(a, b);
return 0;
}Editor is loading...
Leave a Comment