First Step to IT World
Friday, 19 December 2014
Program for Modular Exponentiation
CODE...
int m=(int)Math.Pow(input1, input2);
output1 = m % input3;
2 comments:
Unknown
8 January 2015 at 07:09
it is not working for all examples.
Reply
Delete
Replies
Reply
Unknown
8 January 2015 at 07:10
out=(b^e)%m do not results correct for 2, 10, 1025
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
it is not working for all examples.
ReplyDeleteout=(b^e)%m do not results correct for 2, 10, 1025
ReplyDelete