Python Program to Input 3 variable's value and print the biggest variable

 

x =int( input ( 'Enter x' ))  

y =int( input ( 'Enter y' )) 

z =int( input ( 'Enter z' )) 

if (x>=y and x>=z): 

    print (x, ' is greatest' ) 

elif (y>=z and y>=z): 

    print (y, ' is greatest' ) 

else : 

    print (z, ' is greatest' )



Comments

Some popular posts

Python Program that computes the net amount of a bank account based a transaction log from console input.