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 text structure would you most likely use in describing an exciting event to a friend?
At a certain university in the U.S., all phone numbers are 7-digits long and start with either 824 or 825. (a) How many different phone numbers are possible
2x3/8 less than 2 but greater than 0?
all 3-D objects have volume is this true or false
picture shows question ​
Briefly explain how the advertisement reflects changes in American society in the 1920s. Briefly explain a SECOND example of how the advertisement reflects chan
In the poem, the speaker describes america as a person, or other living creature. How do these descriptions contribute to the overall meaning of the poem?.
Forces have both direction and ____.
What if 36 is 45 percent, what is the other 55 percent
The membrane that lines passageways that open to the exterior environment is called __________.