mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
Update math/magic_number.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
parent
a6b57f8896
commit
fe538baac4
@ -24,7 +24,6 @@
|
|||||||
* @param n number to be checked.
|
* @param n number to be checked.
|
||||||
* @return if number is a magic number, returns true, else false.
|
* @return if number is a magic number, returns true, else false.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
bool magic_number(int n) {
|
bool magic_number(int n) {
|
||||||
if (n <= 0) {
|
if (n <= 0) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user