Python language only
Suppose you are working in the pizza company named Dominoes. Dominoes provides the best in class pizza in the world so While dealing with the coustomer you got a number on every billed amount. SO here your task is to identifiy that the billing amount is a magic number or not.
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.
Input : 1234
Output : Yes it is
Input : 12345
Output : No it is not
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here