Write a program that will ask for two integers that represent the score of the game. The
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a program that will ask for two integers that represent the score of the game. The scores will be between 0 and 100 inclusively. Count how many games UCF will win before they lose one. Once they lose one, print "The season is over" and print out the number of games UCF won. There will be no ties in the game.
Example:
Game #1
What did UCF score: 54
What did the opponent score: 6
Game #2
What did UCF score: 18
What did the opponent score: 16
Game #3
What did UCF score: 70
What did the opponent score: 0
Game #4
What did UCF score: 30
What did the opponent score: 32
The season is over.
UCF won 3 games.
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date: