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
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
Social Sciences,
2 months ago
Math,
2 months ago
Social Sciences,
5 months ago
Math,
5 months ago
Hindi,
11 months ago
Chemistry,
11 months ago