def function(n, step):
s = 0
for i in range(1, n, step):
s += i
return s
I need to translate to While pool. PLS help me! :)
hey did u solve it?can u share here?
What's to solve? Looks fine to me. Returns the sum of the first n-1 integers.
(Dec-06-2017, 10:32 AM)gruntfutuk Wrote: [ -> ]What's to solve?
OP wants implementation using while loop
(Dec-03-2017, 10:23 AM)nikecorei5 Wrote: [ -> ]need to translate to While pool.