Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace gane_info
- {
- class Program
- {
- static void Main(string[] args)
- {
- string footbalTeam = Console.ReadLine();
- int numberOfGames = int.Parse(Console.ReadLine());
- int n = int.Parse(Console.ReadLine());
- int totalDuration = 0;
- for (int i = 0; i<n; i++)
- {
- totalDuration += n;
- int mediumDuration = totalDuration / n;
- Console.WriteLine($"{footbalTeam} has played {totalDuration} minutes. Average minutes per game: {mediumDuration}");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement