Click to See Complete Forum and Search --> : Incrementing a value


MainManDan
February 23rd, 2008, 05:56 AM
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.

ovidiucucu
February 23rd, 2008, 06:43 AM
[ Redirected thread ]

treuss
February 23rd, 2008, 07:46 AM
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.Yes, the way how you implement an "until" in most languages is a loop. Just that the keyword is "while", not "until".