mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
Update math/modular_exponentiation.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
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);
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user