Ask a New Question

Asked by elsa

make a program that will input 6 numbers and output the highest number and the lowest number
9 years ago

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
9 years ago
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.

Related Questions

How can you make an input output division chart I'd like to make the program, "Let's Learn Japanese". In this program, the main characters are two J... input:1 output:49 input:2 output:48 input:3 output:47 what is the rule? p.s.please answer this... input 0 output 18 input 1 output 21 input 2 output 24 input 3 out put 24 whats my rule for input output tables input is 1,2,3,4,5,6 and output is 5,7,9,11,13,15 what is the input output r... Ted wants to make an input- output table with numbers of meters as input values and numbers of centi... a program to input the prices of two items as well as the quantities purchased, and compute the amou... Write a program that input two numbers and find if second number is square of firs number Make a program to find the percentage of marks. I need a program to input age of 10 persons and output the oldest and youngest age.
Submit Your Answer

Question

make a program that will input 6 numbers and output the highest number and the lowest number

Ask a New Question
Archives Contact Us Privacy Policy Terms of Use