magic number program in Java

preview_player
Показать описание
This video has full explanation of magic number in java (code along with compilation and Execution).

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.
For example-
Number= 50113
=
5+0+1+1+3=10
= 1+0=1

#magicnumber
#magicnumberinjava
Follow me on Instagram 👇

Follow me on facebook 👇

Follow me on twitter 👇

Рекомендации по теме
join shbcf.ru