+ 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"); }

28th Oct 2017, 4:04 PM
Serhii
Serhii - avatar
2 Answers
+ 2
Yes, it works, many thanks for the answer :)
28th Oct 2017, 4:21 PM
Serhii
Serhii - avatar