PDA

View Full Version : How do I design an if-then-else


assaz
Apr 24, 2012, 08:22 PM
ow do I design an if-then-else statement that assigns 0 to the variable b if the variable a is less than 10. Otherwise, it should assign 99 to the variable b.

ScottGem
Apr 25, 2012, 03:34 AM
Depends on the language but in psudo code:

If a < 10 then
b = 0
Else
b = 99
End If