i = 0
while i < 4:
    print(i*100)
    i = i +1
print("循环结束")

i = 1
result = 3
while i <=10:
    print(result)
    result = result * 3
    i = i + 1
print("循环结束")

sum1 = 0
num1 = 1
while num1 <= 1000:
    if num1 %2 ==1:
        sum1 = sum1 +num1
    else:
        num1 = num1 + 1
    print(sum1)
print(sum1)