Skip to content

Commit bd94477

Browse files
Create greattwono
Greatest of Two Numbers in Python | Python Program to Print Greatest of Two Numbers
1 parent 2d34fc1 commit bd94477

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

greattwono

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Python Program to find the largest of two numbers using an arithmetic operator
2+
a = int(input("Enter the first number: "))
3+
b = int(input("Enter the second number: "))
4+
if(a - b > 0):
5+
print(a, "is greater")
6+
else:
7+
print(b, "is greater")

0 commit comments

Comments
 (0)