mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-03 10:35:34 +08:00
Update math/modular_exponentiation.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
committed by
GitHub
parent
63b36a9809
commit
4b93d5a521
@@ -48,7 +48,10 @@ int power(int a, unsigned int b, int c)
|
||||
return ans;
|
||||
}
|
||||
|
||||
/// Main Function
|
||||
/**
|
||||
* @brief Main function
|
||||
* @returns 0 on exit
|
||||
*/
|
||||
int main()
|
||||
{
|
||||
/// Give two numbers num1, num2 and modulo m
|
||||
@@ -62,4 +65,3 @@ int main()
|
||||
/// " under modulo "<<m<<" is " << power(num1, num2, m);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user