A fascinating number is one which when multiplied by 2 and 3 and then after the results are concatenated with the original number, the new number contains all the digits from Ito a exactly once. There con ignored. be any number are to be of zeros and are to be ignored
Write the algorithm of the above program
Answers
Answered by
1
Fascinating Number: When a number( 3 digits or more ) is multiplied by 2 and 3, and when both these products are concatenated with the original number, then it results in all digits from 1 to 9 present exactly once. There could be any number of zeros and are ignored. Examples: Input: 192.
Similar questions