Whats wrong in my code

#include<bits/stdc++.h>
using namespace std;
int main() {
int a,b,c;
cin>>a>>b>>c;
int z=((a%c)*(b%c))%c;

cout<<z;
return 0;

}

hello @adarshsingh2k
i think u misunderstood the problem.

her u need to compute ( a power b ) % c.

both are not working

yeah if u r trying to compute it direclty then it will not work.
u need to use modular exponenetiation technique .

how to use that modular exponentation

read about modular exponentaition from here ->link

can you explain lin 13

@adarshsingh2k
line 13 is
y=y/2

that y=y>>1 is just another way of writing it ( u will learn in ur bit manipulation playlist)

ohh thanks for resolving