# -*- coding: utf-8 -*
#Author:li
#python version:3.6
#打印除7以外1-10的数字,
'''n=1
while n < 11:
if n == 7:
pass
else:
print(n)
n = n + 1'''
'''n=0
while n < 10:
n = n + 1
if n == 7:
pass
else:
print(n)'''
#1到100的和
'''n1=1
n2=0
while n1 < 101:
n2 = n1 + n2
n1 = n1+1
print(n2) ##注意要在循环外。'''
#只输出100以内的奇数
'''n = 1
while n < 101:
if n%2 == 0:
passs+n11
else:
print(n)
n = n+1'''
#100以内的偶数
'''n = 1
while n < 101:
if n %2 ==0:
print(n)
else:
pass
n = n+1'''
#求1-2+3-4+5...99的所有数的和 偶数是- s-n,奇数是+,s+n
'''n = 1#当前数
s = 0 #之前所有数的总和
while n<100:
if n%2 == 0:
s = s - n
else:
s = s+n
n = n +1 #循环内
print(s)'''