Question: QUESTION 10: Write a Program in Java to input a number and check whether it is a Fascinating number or not. Fascinating Numbers: Some numbers

QUESTION 10: Write a Program in Java to input a number and check whether it is a Fascinating number or not. Fascinating Numbers: Some numbers of 3 digits or more exhibit a very interesting property. The property is such that, when the number is multiplied by 2 and 3, and both these products are concatenated with the original number, all digits from 1 to 9 are present exactly once, regardless of the number of zeroes. SAMPLE INPUT Consider the number 192 192 x 1 = 192 192 x 2 = 384 192 x 3 = 576 OUTPUT Concatenating the results: 192384576 It could be observed that '192384576' consists of all digits from 1 to 9 exactly once. Hence, it could be concluded that 192 is a Fascinating Number
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
