Update math/magic_number.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
Neha Hasija
2020-10-19 01:42:38 +05:30
committed by GitHub
parent 579a290acb
commit f03910abdc

View File

@@ -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.