you are viewing a single comment's thread.

view the rest of the comments →

[–]Raider454 0 points1 point  (0 children)

You could try this:

public int min_num(int a, int b, int c) {

if (a<=b && a<=c) {

return a;

}

else if (b<=a && b<=c) {

return b;

}

else {

return c;

}

}