26. Create a function which accepts an integer as parameter and return the sum of its digits. Create another
function which accepts an integer as parameter and return true if it is magic number otherwise retum
false. In the main input an integer and check whether it is a magic number or not.
If you iterate the process of summing the decimal digits of a number and if this process terminates in 1,
then the original number is called a magic number. For example 55=> (5+5)=10=>(1+0)=1.
Answers
Answered by
0
Answer:
python code ......,.......,.......
Answered by
0
Answer:
Which language............
Similar questions