Saturday 24 June 2017

Python basic example - To find Maximum number out of three


x = int (input("Enter the value of x:- "))
y = int (input("Enter the value of y:- "))
z = int (input("Enter the value of z:- "))
a = max (x,y,z)
print ("maximum number is :- ",a)

input ("please press enter to exit")
       

No comments:

Post a Comment