Lesson 16: Safe input (int.TryParse)
int.Parse is great — but if the user types text that isn't a number (like "abc"), it crashes. int.TryParse is safer: int.TryParse(text, out int n) tries to convert, returns true if it worked (and the number goes into n), or false if it failed. So you can check with if before using the value.