WAP to enter any no. and print the second largest digit in it using java. eg. 2345 , second largest digit is 4
Answers
Answered by
1
Your answer is in the attachment.
I have used Scanner class for Input of a value from user.
Attachments:
Similar questions