how to write in python to input two numbers from the user and print the greater number
Answers
Answered by
2
"""
Project Type: Brainly Answer
Date Created: 11-02-2021
Date Edited Last Time: ---NIL---
Question Link: https://brainly.in/question/34992075
Question: Write a program in python to input two numbers
from the user and print the greater number.
Program Created By: atrs7391
Programming Language: Python
Language version (When program created or last edited): Python 3.9.1
"""
n1 = int(input("Enter first number: "))
n2 = int(input("Enter second number: "))
if n1>n2:
print(n1, "(first number) is greater one.")
else:
print(n2, "(second number) is greater one.")
Similar questions