public Car(string name, int maxSpeed)
this.maxSpeed = maxSpeed;
public string Name {get; set;}
Console.WriteLine("The speed of the car cannot be zero!!!");
public static void Main(string[] args)
Console.WriteLine("Enter the name of the first car");
string c1Name = Console.ReadLine();
Console.WriteLine("Enter the maximum speed of the first car");
int c1MaxSpeed = int.Parse(Console.ReadLine());
Console.WriteLine("Enter the name of the second car");
string c2Name = Console.ReadLine();
Console.WriteLine("Enter the maximum speed of the second car");
int c2MaxSpeed = int.Parse(Console.ReadLine());
Car c1 = new Car(c2Name, c1MaxSpeed);
Car c2 = new Car(c2Name, c2MaxSpeed);
if (c1MaxSpeed > c2MaxSpeed)
Console.WriteLine($"The car has the highest speed '{c1MaxSpeed}'");
else if (c1MaxSpeed < c2MaxSpeed)
Console.WriteLine($"The car has the highest speed '{c2MaxSpeed}'");
Console.WriteLine($"'{c1MaxSpeed}' = '{c2MaxSpeed}'");