Ask Question
22 February, 04:53

Using a conditional expression, write a statement that increments numUsers if updateDirection is 1, otherwise decrements numUsers. Ex: if numUsers is 8 and updateDirection is 1, numUsers becomes 9; if updateDirection is 0, numUsers becomes 7.

+5
Answers (1)
  1. 22 February, 05:47
    0
    if (updateDirection==1) {

    numUser + +;

    else

    numUser--;

    }

    if (numUser==8 && updateDirection==1) {

    numUser = 9;

    }

    if (updateDirection==0) {

    userUser=7;

    }
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Using a conditional expression, write a statement that increments numUsers if updateDirection is 1, otherwise decrements numUsers. Ex: if ...” in 📙 Mathematics if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers