Fascinating Number using Java Program | Taking Input from User | Java Program |

Publié le: 17 novembre 2022
sur la chaîne: CodeWithAvi
335
6

In this video we are going to learn how we can take inputs from the user as a Number and evaluate it and find if it is a Spy Number or not and print it to the user using Java Program.

*************************
Fascinating Number: When a 3 digit number (n) is concatenated with the number multiplied by 2 (n*2) and the number multiplied by 3 (n*3), and we get a number which contain s all the digits from 1 to 9 exactly once. Such a 3 digit numb er is known as a fascinating number.

Note: There could be any number of zeros, but they are ignored. But all the other digits from 1 to 9 must occurred only once.

For example:
273 is a Fascinating Number.
273*1=273
273*2=546
273*3=819

After, Concatenating all the numbers, we get the final num ber 273546819.

273546819, in this no. all the digits from 1 to 9 comes exac tly once.
*************************

Hope you all Like this Video

Please Like... Share... Subscribe


Sur cette page du site, vous pouvez voir la vidéo en ligne Fascinating Number using Java Program | Taking Input from User | Java Program | durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur CodeWithAvi 17 novembre 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 335 fois et il a aimé 6 téléspectateurs. Bon visionnage!