in the given que ^ stands for multiplication or power?
Modulator exponentiation
It stands for power.
#include
using namespace std;
int main(){
int a,b,c,ans,fans;
ans=1;
cin>>a>>b>>c;
for(int i=0;i<b;i++){
ans=ans*a%c;
}
fans=ans%c;
cout<<fans;
}
1 test case is still not get passed.why
?
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.