może ktoś pomoże zmienić program ?? aby było potęgowanie na tablicach???
#include <iostream>
#include <math.h>
using namespace std;
int function1 (int p_pow)
{
return pow(2,p_pow);
}
int main() {
int x;
cout << "Podaj potege: " <<endl;
cin >> x;
cout << function1(x) <<endl;
return 0;
}