Untitled
Anonymous
c_cpp
02/15/2024 12:37 PM
700 B
22
Indexable
#include <iostream>
using namespace std;
int step(int a, int b) {
int sum = a;
for (int i = 1; i < b; i++)
{
sum *= a;
}
return sum;
}
/*
/───────▄████▄─────
──────███▄█▀───────
─────▐████─────────
──────█████▄───────
───────▀████▀─────*/
int main() {
int a, b;
cin >> a >> b;
cout << step(a, b);
}Editor is loading...
Leave a Comment