Trimorphic Number Trimorphic Number : A number is called Trimorphic Number if and only if its cube ends in the same digits as the number itself. Or A number ‘n’ is called Trimorphic if ‘n^3’ ends in ‘n’ Example :- Input : 5 Cube : 5 X 5 X 5 = 625 Output : It is Trimorphic Number Input : 49 Cube : 49 X 49 X 49 = 117649 Output : It is a Trimorphic Number Input : 7 Cube : 7 X 7 X 7 = 343 Output : It is not a Trimorphic Number Algorithm and Program given below :-
Comments
Post a Comment