Skip to content

Commit

Permalink
Basic
Browse files Browse the repository at this point in the history
  • Loading branch information
SanjanaPurbia authored Jul 31, 2021
1 parent d112b8a commit fad1289
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions greatest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# to find the largest among 3 no
x=float(input("enter x:"))
y=float(input("enter y:"))
z=float(input("enter z:"))

if x>y:
if x>z:
print("x= %0.2f is large" %x)
else:
print("z= %0.2f is large" %z)
else:
if y>z:
print("y= %0.2f is large" %y)
else:
print("z= %0.2f is large" %z)
print("end")

0 comments on commit fad1289

Please sign in to comment.