Friends, our teacher assigned us a homework task. The topic of the assignment is that we will enter the teams, for example, 3 teams. We will enter the number of matches for each team, for example, each team plays 2 matches. We will also enter the number of goals scored and conceded by each team. Based on these values, we need to calculate how many different matches are played and the outcome of each match. How can I write this?