mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
Update modular_exponentiation.cpp
This commit is contained in:
parent
d0fceb37a9
commit
63b36a9809
@ -56,10 +56,10 @@ int main()
|
||||
int num2 = 5;
|
||||
int m = 13;
|
||||
|
||||
std::cout << "The value of "<<num1<<" raised to exponent "<<num2<<"
|
||||
under modulo "<<m<<" is " << power(num1, num2, m);
|
||||
std::cout << "The value of "<<num1<<" raised to exponent "<<num2<<
|
||||
" under modulo "<<m<<" is " << power(num1, num2, m);
|
||||
/// std::cout << "The value of "<<num1<<" raised to exponent "<<num2<<"
|
||||
/// under modulo "<<m<<" is " << power(num1, num2, m);
|
||||
/// " under modulo "<<m<<" is " << power(num1, num2, m);
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user