write a loop to ask for how many wins each team has. within the loop have a nested loop to check if user entered an invalied value valied between 1 and 100
Sounds like a school question. I can't help you cheat but I'll help you with any code related questions. Write what you think the solution is and post it here and I'll give u pointers.
You will need a while() and an if() and else
Actually having trouble with one of my own... usually they look like this
[
for(int i = 0; i< someNumber; i++)
{
someArray[i] = something;
}
]
You have an iterator (usually called "i" but you can name it as you see fit) that you use to control which part of the array you are looking at. All arrays start at 0 so if you made i =1; you would skip the first element. so if you have a hundred element array the last value of i would be 99. You can get the value out of an array the same way you put it in with a for loop. Questions?