Here is what i have done :
i=0
sum=0.0
x=input("Enter a number : ")
while x!=0:
sum=x+sum
x=input("Enter a number : ")
i=i+1
if x==0:
print "sum is : ",sum
The code works fine but i am not being able to understand what is meant by a POST TEST LOOP . Can someone explain to me what is meant by a post test loop ?
thanx

New Topic/Question
Reply



MultiQuote





|