Juan Villena wrote:Hi, in this program, supposed to add odd numbers
it works when num1 <= numb2 : "10, 1"
but when you enter num1 >=numb2 : "10,1" does not work and theres no errors
what condition i have to add (when numb1>=numb2) and where i have to locate it.
Well personally, I'd do it right after they enter the numbers; the question is: what do you do if they enter them in the wrong order?
However, another way to do it
without worrying about errors would be to just
swap the two values if they're in the wrong order.
Winston