write an algorithm to input 3 numbers and find the largest one
Answers
Answered by
2
def max_num(nums):
max_num = nums[0]
for n in nums:
if n > max_num:
max_num = n
return max_num
nums = [int(n) for n in input("enter nums: ").split()]
print(f"max num: {max_num(nums)}")
Answered by
1
Answer:
seeit
Explanation:
Similar questions