public static void Main()
string cam1mins, cam2mins, cam1hrs, cam2hrs;
int cam1time, cam2time, timediff, timeinmins;
Console.Write("input the time at which the car passed cam1 (use the form hh:mm): ");
cam1 = Console.ReadLine();
Console.Write("input the time at which the car passed cam2 (use the form hh:mm): ");
cam2 = Console.ReadLine();
cam1hrs = cam1.Substring(0,2);
a = Convert.ToInt32(cam1hrs);
cam1mins = cam1.Substring(3);
b = Convert.ToInt32(cam1mins);
cam2hrs = cam2.Substring(0,2);
c = Convert.ToInt32(cam2hrs);
cam2mins = cam2.Substring(3);
d = Convert.ToInt32(cam2mins);
timeinmins = cam2time - cam1time;
Console.WriteLine("Your recorded time between " + cam1 + " and " + cam2 + " is " + timeinmins + " mins!");