without using if else statement and ternary operators accept and three unequal numbers and display the second smallest number using scanner classes..
check whether th program is correct or not..
java program
Attachments:
Answers
Answered by
3
Yes, your program is correct.
You are only requested to improve your handwriting and be specific with the cases, as for example, in the statement:
public static void main (String args[])
Note that the case of 'p' and 's' (of static) is small, but you have written them in uppercase.
Again, a method name should not have a gap in the middle, but you have given a gap in the name Second Smallest. It should have been SecondSmallest.
You are only requested to improve your handwriting and be specific with the cases, as for example, in the statement:
public static void main (String args[])
Note that the case of 'p' and 's' (of static) is small, but you have written them in uppercase.
Again, a method name should not have a gap in the middle, but you have given a gap in the name Second Smallest. It should have been SecondSmallest.
Answered by
2
correct answer ...
everything is correct ..
only problem with the lower n upper case...
everything is correct ..
only problem with the lower n upper case...
Similar questions