+ 2

I need help with an error.

I am coding in c# and I was just messing around to see if this code would work, but i got this error(after fixing some bugs): type or namespace definition, or end-of-file expected. I dont know how to fix this, but here is the code: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn { class Program { static void Main(string[] args) { int age=Convert.ToInt32(Console.ReadLine()); if (age<=12) { Console.WriteLine("$5 Please."); } if (age<=17) { Console.WriteLine("$7 Please."); } if (age>=18) { Console.WriteLine("$10 Please."); } } } } }

8th Dec 2020, 8:59 PM
Taco Tube
Taco Tube - avatar
2 Answers
+ 2
Thanks!
8th Dec 2020, 9:03 PM
Taco Tube
Taco Tube - avatar