Trimorphic Number using Java Program | Taking Input from User | Java Program | @CodeWithAvi

Publié le: 21 novembre 2022
sur la chaîne: CodeWithAvi
45
2

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 Trimorphic Number or not and print it to the user using Java Program.

/*
Trimorphic Number: A number is a trimorphic number if the cube of the number ends in the number itself.

For example:

4 is a trimorphic number as its cube (64) contains the 4 at the end.

25 is a trimorphic number as its cube (15625) contains the 25 at the end.

Program's Logic:

n: number

cube: cube of a number

We extract the last digit of the number & cube and compare them until the whole number is checked. If the number & cube digits are equal the no. is trimorphic.
*/


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