Python程序设计:求三个整数的最小值
a = int(input('请输入第一个整数:'))
b = int(input('请输入第二个整数:'))
c = int(input('请输入第三个整数:'))
if a < b:
min = a
else:
min = b
if c < min:
min = c
print('三个整数的最小值为:', min)
输出示例:
请输入第一个整数:5
请输入第二个整数:2
请输入第三个整数:8
三个整数的最小值为: 2
原文地址: https://www.cveoy.top/t/topic/orV7 著作权归作者所有。请勿转载和采集!