Write an algorithm to allow users to enter a quantity of numbers until a negative number is entered. Then display the highest and lowest number entered.
Numbers=input("Input any number")
Do
Numbers
Loop Until Numbers<0
Max=max(Numbers)
Min=min(Numbers)
Print("The highest number was "+Max+", the lowest number was "+Min)
Comments
Leave a comment