Untitled
unknown
c_cpp
a year ago
255 B
6
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