estradaangelic80
estradaangelic80 estradaangelic80
  • 12-11-2020
  • Computers and Technology
contestada

How many times is the coin tossed?

var heads = 0;
var tails = 0;
var rolls = 100;
for(var i = 0; i < rolls; i++){
if(randomNumber(0,1) == 0){
heads++
} else {
tails++
}
}

Respuesta :

ksuakh89 ksuakh89
  • 12-11-2020

Answer:

100 times.

Explanation:

The code will loop until i is equal to or greater than roles. I starts at zero and increases by one after each toss.

Answer Link
unicorn11908
unicorn11908 unicorn11908
  • 12-11-2020
The answer is what the other guy said
Answer Link

Otras preguntas

To avoid a storm, a passenger-jet pilot descended 0.44 mile in 0.8 minutes. What was the planes average change of altitude per minute?
The sum of two consecutive odd integers is 188. list the numbers from smallest to largest:
The architect senemut built a great mortuary for which Egyptian leader
Shawna packs blocks at abc blocks fsctory. She packs thoisanss in crates and tens in stacks. How can she pack an order for 1,250 blocks using just crates and st
¿En Español viene primero el adjetivos o el sustantivo (nombre)? a. Primero es adjetivo segundo es el sustantivo b. Primero es el sustantivo segundo es el
The question "what is it like to be there?" Is essential to the concept in geography known as ?
107+0+39+13 use properties to fin the sum
2x+4=xg solve for x How do you solve this literal equation for x?
Why are a bacteria a necessary part of nitrogen cycle?
According to the Ruler Postulate, what does the set of points on any line correspond to?