Python Online Compiler
Example: Python program of decision making by using the nested if-else statement
C
C++
C#
Java
Python
PHP
main.py
STDIN
Run
# Python program of decision making by using the nested if-else statement print("Enter the two integer values::\n") n, m = int(input()), int(input()) if (n >= m): if (n == m): print("Result: ", n, " = ", m, "\n") else: print("Result: ", n, " > ", m, "\n") else: print("Result: ", n, " < ", m, "\n")
5 7
Output
Clear
ADVERTISEMENTS