Ejemplo n.º 1
0
 public void GetWinner(Footballer fk1, Footballer fk2)
 {
     if (fk1.GetIntGoals() > fk2.GetIntGoals())
     {
         Console.WriteLine($"\n\n{fk1.Name} is winner \n\n\n");
     }
     else
     {
         if (fk2.GetIntGoals() > fk1.GetIntGoals())
         {
             Console.WriteLine($"\n\n{fk2.Name} is winner \n\n\n");
         }
         else
         {
             if (fk1.GetIntGoals() == fk2.GetIntGoals())
             {
                 Console.WriteLine("\n\nDraw game!\n\n\n");
             }
         }
     }
 }
Ejemplo n.º 2
0
 public void FinalScore(Footballer fk1, Footballer fk2)
 {
     Console.WriteLine($"\n\n{fk1.Name} scored {fk1.GetIntGoals()} goals");
     Console.WriteLine($"{fk2.Name} scored {fk2.GetIntGoals()} goals\n\n\n");
 }