Sir
i want that mod operation on gr8ter than 10 bit by following code of C
when loop is is run two time b= 60466176%162710 186 than b = 604666176
when loop is excuted three time than b =470184984576% 162710186
but its a wrong because b is long integer and its range is only 10 bit and our
b is 12 bit so mod operaion is also give wrong solution.......
How i solve this problem ?
plz anyone solve this problem
thanks
sanjay
i want that mod operation on gr8ter than 10 bit by following code of C
Code:
long d,c,b,n;
int i;
d= 65073305
c =7776;
n=162710186;
b=1;
for(i=1;i<=d;i++)
{
b=(b*c);
b=b%n;
}
when loop is is run two time b= 60466176%162710 186 than b = 604666176
when loop is excuted three time than b =470184984576% 162710186
but its a wrong because b is long integer and its range is only 10 bit and our
b is 12 bit so mod operaion is also give wrong solution.......
How i solve this problem ?
plz anyone solve this problem
thanks
sanjay
Comment