Untitled

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

void POER(int a, int b)
{
	int dimon = a;

	for (int i = 1; i < b; i++)
	{
		dimon *= a;
	}

	cout << dimon;
}

int main()
{
	int a, b;
	cin >> a >> b;
	cout << ' ' << endl;
	POER(a, b);
}

Leave a Comment