Computer Science, asked by challengers41, 4 months ago

Ques 11. Write a program to input 10 numbers and print whether it is a magic number or not.
Magic number is keep on finding the sum of the digits till you get the sum in single digit and if the single
digit sum is equal to 1 then it is a magic number else not.
Supp. No. is 7342 => 16 => 7 (not a magic no.)
Supp. No, is 91 => 10 => 1 (magic no.)​

Answers

Answered by krishnapandey2004201
0

Answer:

Ques 11. Write a program to input 10 numbers and print whether it is a magic number or not.

Magic number is keep on finding the sum of the digits till you get the sum in single digit and if the single

digit sum is equal to 1 then it is a magic number else not.

Supp. No. is 7342 => 16 => 7 (not a magic no.)

Supp. No, is 91 => 10 => 1 (magic no.)

Similar questions