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 became of the eastern empire after 476 C.E.?
Question 3 of 20 : Select the best answer for the question. 3. The atomic number of niobium (Nb) is 41. What's the electron configuration for Nb? O A. [Ar] 3s 4
Look at the triangular prism below. Each triangular face of the prism has a base of 3 centimeters (cm)and a height of 4 cm. The length of the prism is 12 cm. Wh
Escoge la respuesta correcta. Where would you go in Latin America to buy books? juguetería lavandería librería
Bab in need of help ☹️
What is shrinkage in Accounting?
Ryland rolls a numbered cube that has sides labeled 1 - 6 and then flips a coin. What is the probability that he rolls an odd number and lands on tails? 1/2 1/4
I'll mark brainiest plz help this is the last question At Caesar’s funeral, Anthony refers to Brutus as a nobleman. Even after conspiring to kill Caesar and go
What are three terms used to describe organisms such as lions?
Help?!?!?!?!?!?!?!?!?!?!?!?!?!?