Create largest_number.py
This commit is contained in:
11
python/largest_number.py
Normal file
11
python/largest_number.py
Normal file
@@ -0,0 +1,11 @@
|
||||
# find the largest of 3 numbers
|
||||
|
||||
x, y, z = 6, 3, 8
|
||||
|
||||
largest = x
|
||||
if y > x and y > z:
|
||||
largest = y
|
||||
elif z > x and z > y:
|
||||
largest = z
|
||||
|
||||
print(largest)
|
||||
Reference in New Issue
Block a user