a=5
b=6
h=10
s=(a+b)*h/2
print(s)
运行结果:
x=5
if x%2==0:
print(“偶数”)
else:
print(“奇数”)
a=14; b=10
c=a%b
if 0<=c<=4:
c=a*10+b
elif 4<c<=9:
c=a*100+b
print(c)
微信扫码预览、分享更方便