Untitled
unknown
plain_text
3 years ago
413 B
6
Indexable
#include <iostream>
using namespace std;
//ostream &operator<< (ostream& out,const aboba &a) {
// out << a.name << " " << a.surname;
// return out;
//}
int pow(int a, int b) {
int t=a;
b--;
while (b != 0) {
a = t * a;
b--;
}
return a;
}
int main()
{
int a, b;
cin >> a >> b;
cout << pow(a, b);
}
Editor is loading...