Untitled
unknown
c_cpp
2 years ago
359 B
4
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