2010-09-23 09:07:19 UTC
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Maximum_and_Minimum_Number_Retriver
{
class Program
{
static void Main(string[] args)
{
double input;
double maximum;
double minimum;
Console.WriteLine("enter the numbers");
input = double.Parse(Console.ReadLine());
maximum = input;
minimum = input;
while (input != -999)
if (input > maximum)
{
input = maximum;
}
else if (input < minimum)
{
input = minimum;
}
input = double.Parse(Console.ReadLine());
Console.Read();
}
}
}