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

Take on the role of a colonist in pre-Revolutionary America. In a letter to your (fictional) cousin in Great Britain, make your argument for the colonies' indep
What temperature is ten degrees higher than -16°C ?
A deficiency in zinc might result in stunt growth
Which of the following is an interrogative sentence?
What is the selling price of a table ticketed at $1,234 with a 22% discount
A(r)=πr^2 to the nearest hundredth, what is the value of A(8)? (use 3.14 for pi.)
When both supply and demand decrease, the equilibrium price:?
According to this diagram, what is cos 16?
If the ratio of two supplementary angles is 7 to 8, calculate the measure of the larger of the two angles. A- 96 B- 165 C- 15 D- 84
Julien's mother has cancer of the stomach, and there are several possible methods that she can try to manage the disease. What is the best way for Julien and hi