Skip to content

Commit 792430d

Browse files
authored
Update maximum.py
1 parent 863927a commit 792430d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

maximum.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
#take input from user
12
n1= int(input('First number: '))
23
n2= int(input('Second number: '))
34
n3= int(input('Third number: '))
45

5-
Maximum = max(n1, n2, n3)
6+
Maximum = max(n1, n2, n3) #Calculate the highest number
67

7-
print('Highest number among three numbers is: ', Maximum)
8+
print('Highest number among three numbers is: ', Maximum) #Print the number

0 commit comments

Comments
 (0)