<p>Hi there,<br>
As shown in the codes below, I want to end the loop until the s is no greater than -5 but I found there is no "do... loop until..." like C so what should I do? I will write it in C's style</p>
<p>s,n = 0,1<br>
do:<br>
import math<br>
s=s+(math.log((n+1)/(n+2))/math.log(2))<br>
loop until s < -5<br>
print(s)</p>