Skip to content

Commit 43a9f0e

Browse files
authored
Update Greater Number
1 parent 99cf7d7 commit 43a9f0e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Greater Number

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Python program to find the greatest of two numbers using the built-in function
22

3+
#Take input from user
34
num1 = int(input("Enter the first number: "))
45
num2 = int(input("Enter the second number: "))
6+
7+
#Compare the inputs with max() function and print result
58
print(max(num1, num2), "is greater")

0 commit comments

Comments
 (0)