answersLogoWhite

0

If you had an array int numbers[10]; you would do it like this:

CODE:

int lowestnumber = numbers[0];

for(int i = 0; i < 10; i++){

if(numbers[i] < lowestnumber)

lowestnumber = numbers[i];

}

END CODE

I think this should work, and in the end the variable lowestnumber will hold the lowest value in the ten.

Hope this helps.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

Write a Shell program to find the smallest number from a set of numbers?

k


A program c plus plus on automorphic numbers or not?

how to write a program that counts automorphic number from 1 to 999


Write a program large number and small number among n numbers by using If statement?

12


Write a java script program to print first ten odd natural numbers in C?

Q.1 Write a program to print first ten odd natural numbers. Q.2 Write a program to input a number. Print their table. Q.3 Write a function to print a factorial value.


How can I write a program to display prime numbers from 1 to 100?

Write a function that implements an algorithm that checks to see if a particular integer is prime (returning a boolean). Write a program that uses that function on each number from 1 to 100, and if true, displays that number.


Write a programme for substraction of two numbers in c language?

substracion of any two number program in c


Write a c program to accept a numbers and generate square root cube and exponential values?

write a c program to accept a number and generate a square root cube and exponential values


Write a program in Lex to eliminate white space and collect numbers as a token?

write a lex program to delete space from the program


Can you give me a program that will compute number 1 to 5?

nr\m;laeoh9y0m g.qthnedxc In fortran: do i=1,5 write(6,*)i enddo stop end This program will write the numbers 1 to 5 on the screen.


How do you write an assembly language program to find the sum of n numbers using array?

write an assembly language program to find sum of N numbers


Write a program to convert a 2 digit BCD number into hexadecimal number?

Write a program to convert a 2-digit BCD number into hexadecimal


Write a c programm to find lowest common factor of two numbers?

A waste of time. The lowest common factor of any two numbers is 1.