Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
308 B
1
Indexable
Never
#include <iostream>
#include <math.h>
#include <string.h>
using namespace std;
long long stepen(int a,int a2, int b) {
	long long stpn = 1;
	while (b > 0) {
		stpn *= (a + a2);
		b--;
	}
	return stpn;
}
int main() {
	int a,a2, b;
	cin >> a >> a2 >> b;
	cout << stepen(a, a2, b);
	return 0;
}
Leave a Comment