Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Math & Sciences (https://www.askmehelpdesk.com/forumdisplay.php?f=402)
-   -   How do I design an if-then-else (https://www.askmehelpdesk.com/showthread.php?t=654162)

  • Apr 24, 2012, 08:22 PM
    assaz
    how do i design an if-then-else
    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.
  • Apr 25, 2012, 03:34 AM
    ScottGem
    Depends on the language but in psudo code:

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

  • All times are GMT -7. The time now is 10:49 PM.