Answers for "minimum of three numbers"

C#
0

minimum of three numbers

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; 
}
Posted by: Guest on March-04-2022

Code answers related to "minimum of three numbers"

C# Answers by Framework

Browse Popular Code Answers by Language