Hi, I've recently started coding as part of my uni maths course, however I am struggling very much with the learning curve.
I want to know how to sum all the positive numbers up to and including n by using a while loop.
From what I have gathered already I would use in the case of n = 10
s = 0n = 10 while s < ((n + 1) * n / 2) N = N + 1 s = s + Nenddisp(s)
What could I do to make this work? Any help would be greatly appreciated,
Best Answer