Dear all,
This should be a trivial problem, but I simply cannot figure it out. I’ve tried all sorts of things, but to no avail.
Essentially, I’ll have an arbitrarily long list of numbers. What I want to do is for each number in the set, check to see if it is < 10000. If it is < 10000 then + 1000 until > than. Otherwise return the original value.
I can’t seem to figure out how to do this - it’s driving me mad! I’ve tried all sorts of embedded loops, different accumulators, etc. Perhaps my thinking is too influenced by ‘C-like’ languages and I’m missing something.
Best,
Nigel