Your approach is not correct.
Given a,b,c, and d and you need to find the lowest number you start with an assumed lowest number. In your case use a.
Then compare b to max. If b is smaller then set max to b. Otherwise leave max alone.
Repeat for c and d and max will contain the lowest number.
At this point, whichever variable is equal to max is the variable with the lowest number.