uaveiro-leci/1ano/fp/aula02/ex02_03.py

14 lines
224 B
Python
Raw Normal View History

2022-10-11 19:27:51 +00:00
x1 = float(input("number? "))
x2 = float(input("number? "))
x3 = float(input("number? "))
x4 = float(input("number? "))
mx = x4
if x1 > mx:
mx = x1
if x2 > mx:
mx = x2
if x3 > mx:
mx = x3
2022-10-18 17:18:56 +00:00
print("Maximum: ", mx)