a=input()
b=input()
c=input()
a=int(a)
b=int(b)
c=int(c)
if a>=b:
if a>=c:
print("a,b,c中最大的值为%d"%a)
else:
print("a,b,c中最大的值为%d"%c)
else:
if b>=c:
print("a,b,c中最大的值为%d"%b)
else:
print("a,b,c中最大的值为%d"%c)
比较三个数的最大值
阅读 85
2022-10-20
a=input()
b=input()
c=input()
a=int(a)
b=int(b)
c=int(c)
if a>=b:
if a>=c:
print("a,b,c中最大的值为%d"%a)
else:
print("a,b,c中最大的值为%d"%c)
else:
if b>=c:
print("a,b,c中最大的值为%d"%b)
else:
print("a,b,c中最大的值为%d"%c)
相关推荐
精彩评论(0)