This program is giving me a count up to 999. which is not what it is suppose to do. can someone tell me how to fix it. The question is as follow:
Write a program that allows the user to enter any number of integer values continuously (in any order) until the user enters 999. Display the sum of the values entered, not including 999.
static void Main()
{
int num= 1;
Console.WriteLine("Please enter a number:");
Console.ReadLine();
while (num >1 || num < 999)
{
Console.WriteLine("The Sum of {0}", num);
num = num + 1;
}
}
}