You are on page 1of 2

# 1st CODE:

count=0

# using While Loop

while True:

count += 1

if count > 10:

break

print (count)

#2nd code:

i=0

while i<=10:

i+=1

if i==11:

break

print(i)

You might also like