Fandom

Scratchpad

Ie/Informatyka/Potega

< Ie | Informatyka

215,979pages on
this wiki
Add New Page
Discuss this page0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

#include<iostream>

#include<cstdio>

//pamietajcie o zmianach w kodzie

//nie gwarantujemy poprawności rozwiązań

using namespace std;


int main()

{

int a, b, p, o;

cin >> a >> b >> p;

o=a;

while(b>1)

{

a=a*o;

b--;

}

cout << a%p;

system("pause");

return 0; }

Also on Fandom

Random wikia