Magic number is the if the sum of its digits recursively are calculated till a single digit If the single digit is 1 then the number is a magic number. Magic number is very similar with Happy Number.
Example- 226 is said to be a magic number
2+2+6=10 sum of digits is 10 then again 1+0=1 now we get a single digit number is 1.if we single digit number will now 1 them it would not a magic number.
#MagicNumber
#Java
In questa pagina del sito puoi guardare il video online Magic Number in Java | Check whether given number is Magic number or not | Loop Programming della durata di ore minuti seconda in buona qualità , che l'utente ha caricato ByteCode Skool 20 maggio 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 579 volte e gli è piaciuto 5 spettatori. Buona visione!