using System; class Program { static void Main(string[] args) { while (true) { // Get the current time DateTime now = DateTime.Now; // Get the deadline from the user Console.WriteLine("Enter the deadline for the project submission (YYYY MM DD HH MM): "); DateTime deadline = DateTime.ParseExact(Console.ReadLine(), "yyyy MM dd HH mm", null); // Calculate the remaining time TimeSpan remainingTime = deadline - now; // Check if the deadline has passed if (remainingTime.TotalSeconds < 0) { Console.WriteLine("The deadline has passed."); } else { // Calculate the remaining time in days, hours, minutes, and seconds int remainingDays = (int)remainingTime.TotalDays; int remainingHours = remainingTime.Hours; int remainingMinutes = remainingTime.Minutes; int remainingSeconds = remainingTime.Seconds; // Display the remaining time Console.WriteLine("The deadline has not passed."); Console.WriteLine("Remaining time: {0} days, {1} hours, {2} minutes, {3} seconds", remainingDays, remainingHours, remainingMinutes, remainingSeconds); } // Ask the user if they want to continue Console.WriteLine("Do you want to check another deadline? (Y/N)"); string answer = Console.ReadLine(); // Exit the loop if the user chooses to quit if (answer.ToLower() == "n") { break; } } } }