Accept a multi digit number and find the difference between it's largest and smallest digit in java
Answers
Answered by
1
Answer:
Given a number N. The task is to find the largest and the smallest digit of the number.
Examples :
Input : N = 2346
Output : 6 2
6 is the largest digit and 2 is samllest
Input : N = 5
Output : 5 5
Similar questions
Environmental Sciences,
29 days ago
Psychology,
29 days ago
Hindi,
29 days ago
Math,
1 month ago
Math,
1 month ago
Math,
7 months ago
Chemistry,
7 months ago