subject

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. hint: start with "numusers = ".
import java. util. scanner;
public class updatenumberofusers {
public static void main (string [] args) {
int numusers = 0;
int updatedirection = 0;
numusers = 8;
updatedirection = 1;
/* your solution goes here */
system. out. println("new value is: " + numusers);
return;
}
}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:30
Kto rozmawia z clamentain przez krótkofalówke w the walking dead w 4 epizodzie
Answers: 1
question
Computers and Technology, 23.06.2019 12:30
What is the difference between the internet and the world wide web?
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
Plz ( which is an example of a good url?
Answers: 1
question
Computers and Technology, 23.06.2019 16:30
Which of the following is not an enhancement to the standard wiki to make it more attractive for corporations? encryptionwork spacespermission toolspredictive text
Answers: 2
You know the right answer?
Using a conditional expression, write a statement that increments numusers if updatedirection is 1,...
Questions
question
Biology, 18.03.2020 01:19
question
Mathematics, 18.03.2020 01:19
question
Mathematics, 18.03.2020 01:19
question
Mathematics, 18.03.2020 01:19
question
Mathematics, 18.03.2020 01:19
Questions on the website: 13722363