This sounds like a contest ....
class ConTest
{
public static void Main(string[] args)
{
int Lowest = int.MaxValue;
int arg;
for (int i = 0; i < args.Length; i++)
{
if (int.TryParse(args[i], out arg))
{
Lowest = (Lowest < arg) ? Lowest : arg;
}
}
Console.WriteLine("Lowest number is {0}", Lowest);
}
}
:-)
What you don't know can hurt you!
|