Ask Question
1 May, 20:55

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.

+2
Answers (1)
  1. 1 May, 22:15
    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 you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers