The raptor program displays the grade for each test score and the average of all four test scores. Use a loop to input four test scores. Validate the input. The test scores must be between 0 and 100.

To solve this problem, you can use a loop in any programming language to input four test scores and validate them. Here's an example of how you can do this in Python:

```python
# Initialize variables
total_score = 0
scores = []

# Loop to input test scores
for i in range(4):
score = -1
# Keep asking for input until a valid score is provided
while not (0 <= score <= 100):
try:
score = int(input("Enter test score {}: ".format(i+1)))
if not (0 <= score <= 100):
print("Invalid score. Score must be between 0 and 100.")
except ValueError:
print("Invalid input. Please enter a number between 0 and 100.")

# Add score to the total and store it in the list
total_score += score
scores.append(score)

# Calculate the average score
average_score = total_score / 4

# Display the grades and average score
for i, score in enumerate(scores):
grade = ""
if 90 <= score <= 100:
grade = "A"
elif 80 <= score < 90:
grade = "B"
elif 70 <= score < 80:
grade = "C"
elif 60 <= score < 70:
grade = "D"
else:
grade = "F"

print("Test score {}: {} - Grade: {}".format(i+1, score, grade))

print("Average score: {}".format(average_score))
```

In this code, the loop runs four times to input four test scores. Inside the loop, it asks the user for input and checks whether the input is a valid score between 0 and 100. If the input is invalid, it continues to ask for input until a valid score is provided.

After all the scores are input and validated, the code calculates the average score by dividing the total score by 4. Then, it uses another loop to display the grades for each test score based on the following grading scale:

- 90-100: A
- 80-89: B
- 70-79: C
- 60-69: D
- Below 60: F

Finally, the code displays the average score.