Untitled
unknown
plain_text
2 years ago
413 B
4
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...