0
Write a program that three non- equal -equal integers and return the smallest?
Use n_way else If statement
2 Respuestas
0
private void GetSmallest(params int[] numbers){
return numbers.Sort()[0];
}
This may be a little cheaty but it works.
I am writing this on my phone let me know if this produces an exception.
0
if a > b
currSmallest= b
else currSmallest= a
if currSmallest > c
currSmallest= c
return currSmallest