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

List three ways to make a solute dissolve faster in a solvent.
A high-speed elevator can rise 480 feet in 30 seconds. Which expression represents the rate. In feet per minute, of the elevator?
Which statement best describes the purpose and audience for Of Plymouth Plantation? A. to explain to Pilgrims in other North American colonies how the Plymouth
who first demonstrated the system of linear perspective?
What is a required for the Perpendicular to Parallels Theorem to be applied? A. collinearity B. The planes must be perpendicular. C. The lines must lie in th
What vehicle looks the same coming and going
Divided 27 divided by -0.09
How many arrangements of the letters in the word "SCHOOLS" are there? 1,260 2,520 5,040
The function f has first derivative given by f'(x)=(x)^1/2/1+x+x^3. What is the x-coordinate of the inflection point of the graph of f? a. 1.008 b. 0.473 c. 0 d
which nations produce more of the world's pollution?