Computer Science, asked by kbnavyamol, 5 months ago

write an algorithm to input 3 numbers and find the largest one​

Answers

Answered by valeriy69
2

\small\mathsf\color{pink}{Solution\: using\: python\: 3}

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)}")

\small\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Answered by miasmith
1

Answer:

seeit

Explanation:

Similar questions