+ 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!!!!!!!!!!!!!!!!
5 Respostas
+ 9
So it's the modulus and division drill again. Boring.
+ 5
Followed the rules! 😉 (might be slow for bigger numbers because of the while loop.)
https://code.sololearn.com/ca7Ki7P3zd28/?ref=app
+ 3
Read rules buddy
+ 2
there we go:
https://code.sololearn.com/cQr5M03581aQ/?ref=app
+ 2
corrected it