Answer in c++ 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...



Answer in c++ 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



Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here