<<< Solution: function declarations (prototypes) | Index | Communication between functions >>> |
A few observations:
did ping-pong program work as expected?
How many shots were printed?
Let's try a few improvements:
Change the program to play exactly 6 shots
Consider using a new variable: MAX_SHOTS
What if we want the user to say how many shots to play?
<<< Solution: function declarations (prototypes) | Index | Communication between functions >>> |