C++ Program
C++ Program
Question: Write a program where user will give the number of teams for T20 Tournament. The valid number will be 2-10.
Each team will play with others 2 times. One is home and another is away match. The result of the match will be based on
tossing coin. This is a basic version of programming; hence simulating real cricket game is not necessary. Use two
functions:
void play(int [],int,int) which will take the array and the index of two team. Based on coin toss value of the
team will be incremented.
void showScore(int [],int) which will display the result of all team.
After playing the entire tournament, the result of all the teams will be shown. Sample output is given below: