If you are just trying to get the string you emphasized, "average was", to display, you would use a print statement when the while loop is over.
To calculate the average, but not include the negative number used to end the loop, you would utilize something called the sentinel loop.
A sentinel loop is a loop that repeats until a sentinel value is seen.
A sentinel value is a value that signals the end of user input.
In this case, the sentinel value would be the negative number that the user inputs. The loop then should end when the sentinel value is inputted.
Remember to set up a sentinel loop:
1. Initialize and declare variable values outside of the while loop. Including the prompt for the value.
2. Start the loop and do all the computations.
3. Call / prompt for values again.
By setting up the loop this way, the loop will not run if the first value entered is a sentinel value or the loop will stop run immediately when the sentinel value is entered, which lets the computations happen while disregarding the sentinel value.