Ask Question
25 May, 06:36

How do you loop a fraction

+5
Answers (1)
  1. 25 May, 08:20
    0
    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.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “How do you loop a fraction ...” in 📘 Mathematics if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers