mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-04-01 17:52:40 +08:00
Update math/magic_number.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @file magic_number.cpp
|
||||
* @file
|
||||
* @brief A simple program to check if the given number is a magic number or not.
|
||||
* A number is said to be a magic number, if the sum of its digits are calculated
|
||||
* till a single digit recursively by adding the sum of the digits after every addition.
|
||||
|
||||
Reference in New Issue
Block a user