public static int MinOfThree(int a, int b, int c) { if(a <= b && a <= c) { return a; } else if(b <= c) { return b; } return c; }