num1 = int (input("Enter a number:")) num2 = int (input("Enter a number:")) num3 = int (input("Enter a number:")) num4 = int (input("Enter a number:")) num5 = int (input("Enter a number:")) if (num1 >= num2) and (num1 >= num3) and (num1 >= num4) and (num1 >= num5): largest = num1 elif (num2 >= num1) and (num3 >= num1) and (num4 >= num1) and (num5 >= num1): smallest = num1 if (num2 >= num1) and (num2 >= num3) and (num2 >= num4) and (num2 >= num5): largest = num2 elif (num1 >= num2) and (num3 >= num2) and (num4 >= num2) and (num5 >= num2): smallest = num2 if (num3 >= num1) and (num3 >= num2) and (num3 >= num4) and (num3 >= num5): largest = num3 elif (num1 >= num3) and (num2 >= num3) and (num4 >= num3) and (num5 >= num3): smallest = num3 if (num4 >= num1) and (num4 >= num2) and (num4 >= num3) and (num4 >= num5): largest = num4 elif (num1 >= num4) and (num2 >= num4) and (num3 >= num4) and (num5 >= num4): smallest = num4 if (num5 >= num1) and (num5 >= num2) and (num5 >= num3) and (num5 >= num4): largest = num5 elif (num1 >= num5) and (num2 >= num5) and (num3 >= num5) and (num4 >= num5): smallest = num5 print("The largest number among all the numbers", largest) print("The smallest of all the numbers is", smallest)