Ask Question
21 January, 09:48

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. 21 January, 10:17
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers