Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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; 
}
 
PREVIOUS NEXT
Tagged: #minimum #numbers
ADD COMMENT
Topic
Name
2+8 =