+ 1
I modified the code on this example for the use of "?" in C#, somethings wrong.
Why doesnt it say 'Sorry' when I enter a number less than 18? https://code.sololearn.com/cWt3l0CF90ja/?ref=app
1 Réponse
+ 5
Use .ReadLine() to get <age>, not .Read(). .Read accepts character, and being converted to integer, the value will be the respective character's ASCII value.