Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq.Expressions;
- namespace Add_Bags
- {
- class Program
- {
- static void Main(string[] args)
- {
- int maximumGoals = Int32.MinValue;
- string bestPlayer = string.Empty;
- int totalGoals = 0;
- while (true)
- {
- string line = Console.ReadLine();
- if (line == "END")
- {
- Console.WriteLine($"{bestPlayer} is the best player!");
- Console.WriteLine($"He has scored {totalGoals} goals.");
- break;
- }
- int countGoals = int.Parse(Console.ReadLine());
- if (countGoals >= maximumGoals)
- {
- totalGoals = maximumGoals;
- }
- }
- Console.WriteLine($"{bestPlayer} is the best player!");
- Console.WriteLine("He has scored {брой голове} goals and made a hat-trick !!!");
- Console.WriteLine("He has scored {брой голове} goals.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement