Untitled
unknown
c_cpp
2 years ago
255 B
8
Indexable
#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);
}Editor is loading...
Leave a Comment