n1 = int( input( "Enter a number: " ) ) n2 = int( input( "Enter a number: " ) ) n3 = int( input( "Enter a number: " ) ) n4 = int( input( "Enter a number: " ) ) n5 = int( input( "Enter a number: " ) ) if (n1 > n2) and (n1 > n3) and (n1 > n4) and (n1 > n5) : print( "The biggest number was:", n1 ) elif (n2 > n1) and (n2 > n3) and (n2 > n4) and (n2 > n5) : print( "The biggest number was:", n2 ) elif (n3 > n1) and (n3 > n2) and (n3 > n4) and (n1 > n5) : print( "The biggest number was:", n3 ) elif (n4 > n1) and (n4 > n2) and (n4 > n3) and (n1 > n5) : print( "The biggest number was:", n4 ) elif (n5 > n1) and (n5 > n2) and (n5 > n3) and (n5 > n4) : print( "The biggest number was:", n5 ) if (n1 < n2) and (n1 < n3) and (n1 < n4) and (n1 < n5) : print( "The smallest number was:", n1 ) elif (n2 < n1) and (n2 < n3) and (n2 < n4) and (n2 < n5) : print( "The smallest number was:", n2 ) elif (n3 < n1) and (n3 < n2) and (n3 < n4) and (n1 < n5) : print( "The smallest number was:", n3 ) elif (n4 < n1) and (n4 < n2) and (n4 < n3) and (n1 < n5) : print( "The smallest number was:", n4 ) elif (n5 < n1) and (n5 < n2) and (n5 < n3) and (n5 < n4) : print( "The smallest number was:", n5 )