prettybrighteyp2zyrf prettybrighteyp2zyrf
  • 23-01-2018
  • Mathematics
contestada

how do you loop a fraction

Respuesta :

AnswerTaker
AnswerTaker AnswerTaker
  • 05-02-2018
How come when I attempt to iterate through a loop (for or while) I am unable to increase it by a fraction (let's say 0.5). If I start with a variable defined as 0 then ask it to increase by 1 each time (++) up until 5 it works fine. However, if I ask it to increase by 0.5 it causes an infinite loop. Clearly there is an error with the incremental formula.

Answer Link

Otras preguntas

What is the FIRST thing you should do before planting? es ) A) Talk to an expert about what grows best in your area. B) Determine which birds you want to attrac
Rafael is planning a pizza party for 12 people and wants to make sure there is enough pizza for each person to eat 48휋 square inches. How many 16-inch diameter
Hoy en día los jóvenes son bombardeados con mensajes de moda y apariencia física. Verdadero Falso
If you heat a gas, what effect will this have on the movement of the particles?
Find the pattern and the next number 2,6,12,____??
I don’t know how to do gustar
Why did the Mexicans believe that the Spaniards were immortal?
The product of two numbers is 454 . If one of the numbers is 338 then find the other number.
Which sentence uses correct punctuation? A. Mara wished she could visit the stars: she often dreamed of it. B. I'm no doctor, I had no advice to give the injure
evaluate 4y when y = 5