Update math/modular_exponentiation.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
Shri Prakash Bajpai 2020-10-20 12:58:03 +05:30 committed by GitHub
parent 63b36a9809
commit 4b93d5a521
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,10 @@ int power(int a, unsigned int b, int c)
return ans; return ans;
} }
/// Main Function /**
* @brief Main function
* @returns 0 on exit
*/
int main() int main()
{ {
/// Give two numbers num1, num2 and modulo m /// Give two numbers num1, num2 and modulo m
@ -62,4 +65,3 @@ int main()
/// " under modulo "<<m<<" is " << power(num1, num2, m); /// " under modulo "<<m<<" is " << power(num1, num2, m);
} }