static void Main(string[] args)
const int RentalRatePerHour = 40;
const int RentalRatePerMinute = 1;
Console.Write("Enter the number of minutes rented: ");
int minutes = int.Parse(Console.ReadLine());
int totalMinutes = minutes % 60;
int totalHours = minutes / 60;
decimal totalCost = RentalRatePerHour * totalHours + RentalRatePerMinute * totalMinutes;
Console.WriteLine("You rented the equipment for {0} hours and {1} minutes.", totalHours, totalMinutes);
Console.WriteLine("The total cost is ${0:0.00}.", totalCost);