iMsIdZz
3 years ago

please solve this easy question php

Posted 3 years ago by iMsIdZz

Find the smallest number from the given two integers. Example

myMin(3, 2) = 2

[input] integer a

[input] integer b

[output] integer
    min of a and b

please solve with full code code is :-

    function myMin(a, b) {
     if (a > b) {
     return a;
     }
     return b;
    }

Please sign in or create an account to participate in this conversation.