# [Solved] What Would Be the Result After the Following Code Is

## What would be the result after the following code is executed? int[] numbers = {40, 3, 5, 7, 8, 12, 10};

Int value = numbers[0];

For (int i = 1; i < numbers.length; i++)

{

If (numbers[i] < value)

Value = numbers[i];

}

A) The value variable will contain the average of all the values in the numbers array.

B) The value variable will contain the sum of all the values in the numbers array.

C) The value variable will contain the lowest value in the numbers array.

D) The value variable will contain the highest value in the numbers array.

10+ million students use Quizplus to study and prepare for their homework, quizzes and exams through 20m+ questions in 300k quizzes.

### Computing

Explore our library and get Programming Homework Help with various study sets and a huge amount of quizzes and questions

614

Study sets

8.7K

Quizzes

644.4K

Questions

Upload material to get free access

Upload NowInvite a friend and get free access

Invite a friendSubscribe and get an instant access

See our plans