So I just bought the C# course and this is my first week on it. I’m using Console.ReadLine and then using the users responce to write a string. But whenever I run the program it doesn’t let the user respond and just puts a 0 instead. Here’s my code:
string MyDog = "Bridger";
Console.WriteLine("How old is " + MyDog + "?");
Console.ReadLine();
int DogAge = Convert.ToInt32(Console.ReadLine());
Console.WriteLine(MyDog + " is " + DogAge + " years old!!");