I'm trying to write a C++ program that will allow a user to input a number from the keyboard. Then using a loop, that will perform 10 times, multiply the entered number by the loop counter. Print out the loop counter, the entered number and the product of the loop counter and the entered number. A one-time heading should be displayed before information is printed.
This kinda of what I have so far:
using namespace std;
int main ()
Declare: numScores, sum, score, avg, SENTINEL = 200
numScores = 0
Write "Enter your score, or 200 to quit: "
While score < 0
Write "There are no negative scores!"
Write "Enter another: "
If score != SENTINEL Then
numScores = numScores + 1
sum = sum + score
While score != SENTINEL
If numScores != 0 Then
avg = sum/numScores
Write "Average = ",avg
Write "No valid scores were input."
All the programs I have tried to make are not working any suggestions?
No it's a C++ program that I'm trying to create, I realize that I kind of wrote this in the wrong section. I'm a beginner... I was just trying to find the different programs to help me with this one, and yes that is pseudocode...