Untitled

mail@pastecode.io avatar
unknown
c_cpp
17 days ago
255 B
3
Indexable
Never
#include <iostream>
using namespace std;
double krutost(int a, int b, int c)
{
	int sum = a + c;
	double k = 1;
	while (b)
	{
		k *= sum;
		b--;
	}
	return k;
}
int main()
{
	int a, b, c;
	cin >> a >> b >> c;
	cout << krutost(a, b, c);
}
Leave a Comment