Untitled

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

int KRUTOST(int a, int b)
{
	int dimon = a;

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

	return dimon;
}


int main()
{
	int pre;
	int fives;
	int shta;
	cin >> pre >> fives >> shta;
	int a = pre+fives;

	cout << KRUTOST(a, fives);




}

Leave a Comment