logical statement and sorting
Posted: Wed May 13, 2009 7:42 pm
hi.. im just a newbie in php.. i would just like to ask about the assign our professor left for us..
the problem is this: there will be 3 input numbers, the string for these three numbers are A,B,C.. then next step, the "if-lse" statement.. it will first process if it is greater than or less than the other number.. then it will sort out from highest to lowest and vice versa..
example:
$a = 11;
$b = 10;
$c = 31;
how can i do it? thank you in advance!
the problem is this: there will be 3 input numbers, the string for these three numbers are A,B,C.. then next step, the "if-lse" statement.. it will first process if it is greater than or less than the other number.. then it will sort out from highest to lowest and vice versa..
example:
$a = 11;
$b = 10;
$c = 31;
how can i do it? thank you in advance!