J
John Salerno
Ok, here's an attempt at something. I figure I can use this to let me
know when my laundry's done!
I'm hoping you guys can spot ways to make it better/cleaner/more
efficient, etc. especially where the math is involved. Thanks.
using System;
using System.Threading;
class Alarm
{
static void Main()
{
Console.Write("Enter the number of minutes to wait: ");
int iDelay = Int32.Parse(Console.ReadLine());
int iDelayMS = iDelay * 60 * 1000;
Thread.Sleep(iDelayMS);
Console.WriteLine("\a");
Console.WriteLine(iDelay + " minutes have elapsed.");
}
}
know when my laundry's done!

I'm hoping you guys can spot ways to make it better/cleaner/more
efficient, etc. especially where the math is involved. Thanks.
using System;
using System.Threading;
class Alarm
{
static void Main()
{
Console.Write("Enter the number of minutes to wait: ");
int iDelay = Int32.Parse(Console.ReadLine());
int iDelayMS = iDelay * 60 * 1000;
Thread.Sleep(iDelayMS);
Console.WriteLine("\a");
Console.WriteLine(iDelay + " minutes have elapsed.");
}
}