English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

8 answers

yes. infact it is very easy...

1. input 5 integers
2. run a for loop thruout the array to find the lowest number.
3. print it.

2006-10-10 04:56:09 · answer #1 · answered by Vishy 2 · 0 0

This sounds like homework, but here's some help on the part that determines the lowest integer in the array.

array[ ] is the name of the array, zero indexed
i is an integer variable used to count through the loop
min is an integer variable used to keep track of the lowest integer

min = array[ 0 ]
for(1 <= i <= 4)
{
if(array[ i ] < min) then min = array[ i ]
}

2006-10-10 05:03:47 · answer #2 · answered by Anonymous · 0 0

This appears like homework, yet right this is a few help on the section that determines the backside integer in the array. array[ ] is the call of the array, 0 listed i is an integer variable used to count extensive style in the process the loop min is an integer variable used to maintain music of the backside integer min = array[ 0 ] for(a million <= i <= 4) { if(array[ i ] < min) then min = array[ i ] }

2016-10-19 03:36:36 · answer #3 · answered by Anonymous · 0 0

It's called a sorting algorithm. The computer goes through a loop and compares each number to the last until it finds the lowest one. You will need to make an array element for each iteration of the loop.

2006-10-10 04:58:24 · answer #4 · answered by martin h 6 · 0 0

-- Your code must be somthing like this(in basic):

DIM ARR(5)

FOR I=0 TO 4
INPUT ARR(I)
NEXT

FOR I=0 TO 4
IF L > ARR(I) THEN L = ARR(I)
NEXT

PRINT "The lowesty is: ",L

-- Now L is the lowest #

2006-10-10 05:19:57 · answer #5 · answered by Anonymous · 0 0

ya, what programming language are you using? i could help you with vb or qbasic

2006-10-10 05:05:23 · answer #6 · answered by danielrosborne 4 · 0 0

yes u can

2006-10-10 05:00:42 · answer #7 · answered by Anonymous · 1 0

yes, are you using java or javascript or c? What is this for?

2006-10-10 04:56:18 · answer #8 · answered by romeohsdrumline 3 · 0 0

fedest.com, questions and answers