mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-05-07 05:42:03 +08:00
Update modular_exponentiation.cpp
This commit is contained in:
committed by
GitHub
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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user