How can I make the winner team appear at the end? | Sololearn: Learn to code for FREE!

+2

How can I make the winner team appear at the end?

How can I make the winner team appear at the end? I'm beginner:) Sorry for my bad English. https://code.sololearn.com/ce31Iil8u7Re/?ref=app

9/23/2019 5:23:41 AM

Danyysz

1 Answer

New Answer

+3

You could make integer variables for each team, and increase them by 1 when their team gets a goal, in the end you'd compare the variables and print the team which won.