#include "stdlib.h" #include "iostream.h" int potega(int podst, int wyk) { if(wyk == 0) { return 1; } else { return podst * potega(podst, wyk - 1); } } int main() { cout << potega(2, 2) << endl; system("pause"); }