Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
280 B
1
Indexable
Never
#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;
}
Leave a Comment