Would it be wise to use a loop to do the following?
enter a number eg 5 then multiply 0.2 by 1.0 squared then 1.2 squared and so forth until you reach the number then user typed in.
Printable View
Would it be wise to use a loop to do the following?
enter a number eg 5 then multiply 0.2 by 1.0 squared then 1.2 squared and so forth until you reach the number then user typed in.
[ Redirected thread ]
Yes, the way how you implement an "until" in most languages is a loop. Just that the keyword is "while", not "until".Quote:
Originally Posted by MainManDan