I am getting an error saying that ID was already declared, so it cannot be declared again in my while loop. Then how do I increment my loop?
int RealID = 100;
Console.WriteLine("Enter Number");
int ID = int.Parse(Console.ReadLine());
while( ID != ReadID)
{
Console.WriteLine("Incorrect ID. Enter another number");
int ID = int.Parse(Console.ReadLine());
}
Console.WriteLine("You entered the correct ID");