Untitled

mail@pastecode.io avatar
unknown
c_cpp
2 months ago
524 B
1
Indexable
Never
#include <iostream>
using namespace std;


int step(int a, int b) {
	int sum = a;
	for (int i = 1; i < b; i++)
	{
		sum *= a;

	}
	return sum;
}

/*
/───────▄████▄─────
──────███▄█▀───────
─────▐████─────────
──────█████▄───────
───────▀████▀─────*/

int main() {
	int a, b;
	cin >> a >> b;
	cout << step(a, b);
}
Leave a Comment