subject
Computers and Technology, 20.08.2019 22:00 mem8163

What does the following code segment do?
var count =0;
var sevens =0 ;
while(count< 100)
{
var roll1 = math. floor(math. random()*6+1);
var roll2 = math. floor(math. random()*6+1);
if(roll1 + roll2 == 7)
sevens = sevens +1;
}

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 06:00, isalita
Pthe price of tickets in a group when a purchased in bulk can be found with the equation c=px+24 were c is the cost, p is the number of people, and x is the price per ticket. what is price of of each ticket if it costs $189 to buy tickets for 15 people ? a $8 b $24c $9d $11 show work
Answers: 1
image
Computers and Technology, 22.06.2019 10:00, adam4449
Jackson is teaching the decimal number system. he wants his students to know how to expand numbers by powers of 10. which is the correct order in which digits are assigned values in the decimal number system?
Answers: 1
image
Computers and Technology, 23.06.2019 19:50, Aprillove7939
Which feature is selected to practice and save the timing of a presentation
Answers: 1
image
Computers and Technology, 23.06.2019 20:30, lucywood2024
What is the biggest difference between section breaks and regular page breaks
Answers: 1
You know the right answer?
What does the following code segment do?
var count =0;
var sevens =0 ;
while(co...

Questions in other subjects: