Computer Science, asked by vimalam654, 5 months ago

write a python program to find the greatest 2 nos​

Answers

Answered by yashasvi2646
1

Answer:

MARK ME AS BRAINLIEST ANSWER

Explanation:

In this Python program, it finds the largest number among the two using Nested If. Within the Python Program to return the Largest of Two Numbers example, the first if condition checks whether a is equal to b. Inside the Else block, we are using another if statement to check whether a is greater than b or not.

Answered by jai696
2

\huge\red{\mid{\fbox{\tt{Using\: Python\: 3}}\mid}}

a, b = [int(n) for n in input("enter 2 nums: ").split()]

print(f"max: {a}") if a > b else print(f"max: {b}")

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

Similar questions