0
C# error while running
else if (age == 18) { Console.WriteLine("You are still allowed" + name); } else { Console.WriteLine("You are allowed" + name); } Console.ReadKey(); } } } Remaining part of code
2 Answers
0
1. On c# you can use interpolation string for cw, instead that +
Console.WriteLine(quot;You are still allowed {name}");
2. Sorry, but i don't understand your problem just with this, link the code if you can.
0
Brackets
Check brackets; The code has no problem