for i in range(5) :
print(i)
x=9
y =x**0.5
z= abs (x/2-7*y)
z = int(z)
s=0
for i in range(1,21) :
s=
print (s)
x=0
for i in range(6):
for j in range(7):
x=x+1
print (x)
year=2021
if (year%400==0) or ( year%4==0 and year%100!=0 ):
days=366
else:
days=365
print(days)
⑴程序运行结果是:。
a=88
b=48
c=a//b
If c==0:
c=a*10+b .
elif 1<=c<=9:
c=a*100+b
elif 10<=c<=99:
c=a*1000+b
print(c)
⑵程序运行结果是:。
for i in range(1,10,2):
print(iend=" ")
⑶程序段执行结果是:。
for i in range(1,100):
if i%3==0 and i%7==0:
⑷程序段执行的结果是:。
height=input('你的身高是多少米:')
height=float(height)
weight =input('你的体重是多少KG:')
weight =float(weight)
BMI=weight/(height*height)
if BMI>=24.9:
print('肥胖')
① BMI<24.9 ② BMI>=18.5:
print('正常')
else:
print('偏瘦')