mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
Remove extra blank lines in math/mod_inverse_by_fermat_theorem.cpp
This commit is contained in:
parent
5f11e212f8
commit
9872a08f27
@ -45,16 +45,13 @@ int64_t binExpo(int64_t a, int64_t b) {
|
||||
}
|
||||
|
||||
int main() {
|
||||
|
||||
int64_t a;
|
||||
/*
|
||||
Take input of a.
|
||||
(A number for which we want to find modular inverse with m)
|
||||
*/
|
||||
|
||||
std::cout << "Give input a for computing ((a^(-1))%(m)) : ";
|
||||
std::cin >> a;
|
||||
|
||||
std::cout << "The modular inverse of a with mod m is (a^(m-2)) : ";
|
||||
std::cout << binExpo(a, m-2) << std::endl;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user