+ 4

print maximum n minimum digit of the entered no.

Rules: 1)You will not use Array 2)You will not use string 3)code should be in java Example of my question: suppose u entered 4756 Output will be (largest digit is 7) (smallest digit is 4) Best of luck!!!!!!!!!!!!!!!!

24th Dec 2017, 1:34 PM
Fazil
Fazil - avatar
5 Answers
+ 9
So it's the modulus and division drill again. Boring.
24th Dec 2017, 1:43 PM
Hatsy Rei
Hatsy Rei - avatar
+ 5
Followed the rules! šŸ˜‰ (might be slow for bigger numbers because of the while loop.) https://code.sololearn.com/ca7Ki7P3zd28/?ref=app
25th Dec 2017, 6:01 AM
Dev
Dev - avatar
+ 3
Read rules buddy
24th Dec 2017, 2:05 PM
Fazil
Fazil - avatar
24th Dec 2017, 2:04 PM
Jeremy
Jeremy - avatar
+ 2
corrected it
24th Dec 2017, 2:10 PM
Jeremy
Jeremy - avatar