I am using codecademy to learn C#, this is their code
using System;
namespace GettingInput
{
class Program
{
static void Main()
{
Console.WriteLine("How old are you?");
string input = Console.ReadLine();
Console.WriteLine($"You are {input} years old!");
}
}
}
I did that but it told me unexpect '$' in line 11, i tried to copy paste the exact code because i thought maybe i did a small mistake i dont notice but still doesnt work, how do i fix this?