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

Julia has 14 pounds of nuts. There are 16 ounces in 1 pound. How many ounces of nuts does she have?
Which is the MOST negative effect resulting from citizens relying on the Internet as their only source of news?
Which characteristic is distinctive of hominids?
Describe the major types of bodies of water
Which has a greater density, a 1 kg pure gold chain or a 20 kg piece of pure gold bar?
Which of the following terms is used to refer to media outlets that utilize sensationalized headlines and stories to spark interest? A) Entertainment news B)
Can I get help on all these please
The Linnaean system of classification used a nested hierarchy to sort organisms into groups based on similarities and differences in their characteristics. king
Islamic fundamentalists belive in strict obedience to religious laws true or false
Answer the questions in the image