num1 = int(input( "Enter number: ")) num2 = int(input( "Enter number: ")) num3 = int(input( "Enter number: ")) num4 = int(input( "Enter number: ")) num5 = int(input( "Enter number: ")) if num1 > num2 and num1 > num3 and num1 > num4 and num1 > num5 : print("the biggest number was ", num1 ) elif num2 > num1 and num2 > num3 and num2 > num4 and num2 > num5 : print("the biggest number was ", num2 ) elif num3 > num1 and num3 > num2 and num3 > num4 and num3 > num5 : print("the biggest number was ", num3 ) elif num4 > num1 and num4 > num2 and num4 > num3 and num4 > num5 : print("the biggest number was ", num4 ) elif num5 > num1 and num5 > num2 and num5 > num3 and num5 > num4 : print("the biggest number was ", num5 ) if num1 < num2 and num1 < num3 and num1 < num4 and num1 < num5 : print("the smallest number was ", num1 ) elif num2 < num1 and num2 < num3 and num2 < num4 and num2 < num5 : print("the smallest number was ", num2 ) elif num3 < num1 and num3 < num2 and num3 < num4 and num3 < num5 : print("the smallest number was ", num3 ) elif num4 < num1 and num4 < num2 and num4 < num3 and num4 < num5 : print("the smallest number was ", num4 ) elif num5 < num1 and num5 < num2 and num5 < num3 and num5 < num4 : print("the smallest number was ", num5 )