Untitled
unknown
c_cpp
a year ago
359 B
3
Indexable
#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); }
Editor is loading...
Leave a Comment