+ 1
help please
Hello, faced one problem in the code, but do not understand what's the matter, please explain what's wrong ? int howmanyyears = 18; Console.WriteLine("How many years ?"); howmanyyears = Console.ReadLine(); if (howmanyyears > 18){ Console.WriteLine("Lol, already an adult"); } else { Console.WriteLine("Lol, what a little"); }
2 Answers
+ 2
Yes, it works, many thanks for the answer :)