Write a program that asks the users to enter five test scores into an array

Find numbers divisible by 5 and 6

2. Write a program that displays all the numbers from 100 to
1,000 -ten per line- that are divisible by 5 and 6. Numbers are
separated by exactly one space.

Step 1: Declare an integer array to store the test scores.

```
int[] scores = new int[5];
```

Step 2: Use a for loop to ask the user to enter the test scores.

```java
import java.util.Scanner;

public class TestScores {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int[] scores = new int[5];

for (int i = 0; i < scores.length; i++) {
System.out.print("Enter test score " + (i + 1) + ": ");
scores[i] = scanner.nextInt();
}

// Add any additional operations on the scores array as needed

scanner.close();
}
}
```

In this program, we declare an integer array `scores` of size 5. Then, we iterate over the array using a for loop and prompt the user to enter the test score for each index. The entered scores are stored in the array.

To write a program that asks the users to enter five test scores into an array, you can follow these steps:

1. Declare an integer array variable with a size of 5 to hold the test scores.
2. Use a loop to iterate five times and prompt the user to enter a test score each time.
3. Inside the loop, read the input from the user and store it in the corresponding element of the array.
4. After the loop, you can perform any further calculations or operations based on the test scores stored in the array.

Here's an example program in Python that demonstrates this:

```python
# Declare an array variable to hold the test scores
test_scores = [0] * 5

# Iterate five times using a loop
for i in range(5):
# Prompt the user for a test score
score = int(input("Enter test score #" + str(i+1) + ": "))

# Store the test score in the array
test_scores[i] = score

# Print the test scores
print("Test scores entered:")
for i in range(5):
print("Test score #" + str(i+1) + ": " + str(test_scores[i]))
```

In this program, we declare an array variable `test_scores` with a size of 5. Then, we use a `for` loop to iterate five times, asking the user to enter a test score each time. The user input is converted to an integer using `int(input())` and stored in the array at the corresponding index. Finally, we print out the test scores entered by looping through the array.