
a=int(input( ))
b=int(input( ))
print(a*b)
a=int(input( ))
b=
print(a+b)
for i in range(3):
print(i, end="")
print("go")
| 1 | go |
| 2 | go |
| 3 | go |
|
1 |
|
2 |
|
3 go |
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('偏瘦')
① ②
s=0
for i in range (1, 101):
if i%2==0:
s=s+i
该程序段被执行后,变量s中存储的是1~100之间的( )。
求解这个问题,若用枚举法来求解,公鸡数量的枚举范围应为( )