From db3f694490ca8db5e2ef71484dc06992ee3d4cf1 Mon Sep 17 00:00:00 2001 From: Neha Hasija Date: Mon, 19 Oct 2020 01:42:47 +0530 Subject: [PATCH] Update math/magic_number.cpp Co-authored-by: David Leal --- math/magic_number.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/math/magic_number.cpp b/math/magic_number.cpp index c6be43a9f..de0a8fde3 100644 --- a/math/magic_number.cpp +++ b/math/magic_number.cpp @@ -4,7 +4,8 @@ * 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. * If the single digit comes out to be 1,then the number is a magic number. - * @detail This is a shortcut method to verify Magic Number. + * + * This is a shortcut method to verify Magic Number. * On dividing the input by 9, if the remainder is 1 then the number is a magic number else not. * The divisibility rule of 9 says that a number is divisible by 9 if the sum of its digits * are also divisible by 9. Therefore, if a number is divisible by 9, then, recursively,