1.

WAP to enter any number and print the largest and the smallest digit present in that number by using java

Answer» GIVEN a number N. The task is to find the largest and the smallest digit of the number.Examples :Input : N = 2346Output : 6 26 is the largest digit and 2 is samllestInput : N = 5Output : 5 5


Discussion

No Comment Found