The program receives 3 test scores as input from the user using scanf, stores them in an integer array called scores, and then calculates and prints the total and average of the scores by looping through the array and performing the calculations. It demonstrates receiving input into an array and then processing the array elements to produce an output.