Incluzi biblioteca math.h si folosesti functia pow(). Merge pe absolut orice compilator/IDE fiindca face parte din standard.
#include
using namespace std;
int main()
{int x,n, i, nr;
cin>>x;
cin>>n;
nr=1;
for(i=1; i
Daniel1211 întreabă: