Asked by elsa
make a program that will input 6 numbers and output the highest number and the lowest number
Answers
Answered by
Steve
input n
max=min=n
for i=2..6
read n
if n>max then max=n
if n<min then min=n
next i
print max,min
max=min=n
for i=2..6
read n
if n>max then max=n
if n<min then min=n
next i
print max,min
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.