Program doesn't wait for user responce and just puts 0

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 + "?");
  int DogAge = Convert.ToInt32(Console.ReadLine());
  Console.WriteLine(MyDog + " is " + DogAge + " years old!!");

Hello, @dev1988309987, and welcome to the forums!

Depending on where you are in the Codecademy learning environment, you may or may not be able to get user input. Not every console pane, is an interactive console. In many of the lessons, the console is simply an output window. I pasted your code (minus the unnecessary Console.ReadLine();) on a site called Try it at the following link: