Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Other Programming (https://www.askmehelpdesk.com/forumdisplay.php?f=437)
-   -   If-then-else statements (https://www.askmehelpdesk.com/showthread.php?t=376358)

  • Jul 16, 2009, 10:26 AM
    andyhaus1057
    If-then-else statements
    How would I go about designing an If-Then-Else statement or a flowchart with a dual alternative decision structure) that assigns 0 to the variable b if the variable a is less than 10? Otherwise, it should assign 99 to the variable b.
  • Jul 16, 2009, 10:50 AM
    ebaines

    Not sure what language you're into, but in general the logic would be like this:

    if(a<10)
    then b = 0;
    else b = 99;
    endif
  • Feb 3, 2012, 10:41 PM
    rdpalmer
    if temperature is <0 Then

    Else if variable is > 10 then
    Display "Variable is A
    Else if variable is

  • All times are GMT -7. The time now is 06:59 PM.