subject

5.10.4: Snake Eyes My code:

var SENTINEL = 1;

function start(){

var diceOne;

var diceTwo;

while(true) {
println("" + diceOne + "," + diceTwo);

diceOne = Randomizer. nextInt(1,6);

diceTwo = Randomizer. nextInt(1,6);

if (diceOne && diceTwo == SENTINEL){
println("" + diceOne + "," + diceTwo);

break;

}

}
}

What am I doing wrong here?

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 02:30
Rafael needs to add a title row to a table that he has inserted in word. what should he do? use the alignment options. use the merge and center option for all the cells in the top row. use the merge and center option on the first two cells in the top row. none of the above
Answers: 3
question
Computers and Technology, 23.06.2019 06:00
How can a user delete a drawing object
Answers: 1
question
Computers and Technology, 23.06.2019 09:00
The first screen you see when you open word2016 what is called?
Answers: 1
question
Computers and Technology, 23.06.2019 12:10
2. fabulously fit offers memberships for$35 per month plus a $50 enrollmentfee. the fitness studio offersmemberships for $40 per month plus a$35 enrollment fee. in how many monthswill the fitness clubs cost the same? what will the cost be?
Answers: 1
You know the right answer?
5.10.4: Snake Eyes My code:

var SENTINEL = 1;

function start(){

...
Questions
question
Social Studies, 15.10.2019 15:30
question
Social Studies, 15.10.2019 15:30
Questions on the website: 13722361