Question : Write a program to check whether given number is Magic or not?
A Magic number said to be a magic when we add each digit until its reached less than 10 after that if value is 1 then number is Magic.
Example :
28 = 2+8
=10
10= 1+0
=1