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

5th Oct 2021, 9:47 AM
omitogun toni
omitogun toni - avatar
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.
5th Oct 2021, 3:31 PM
Sudo-Ale
Sudo-Ale - avatar
0
Brackets Check brackets; The code has no problem
6th Oct 2021, 7:38 PM
hossein B
hossein B - avatar