I'm trying to understand exceptions but i'm having a hard time. So when an error occurs in my program. For example :
int number = Console.Readline();Console.Writeline($"{number}");
int number = Console.Readline();Console.Writeline($"{number}");
If the input here in this case wasn't an integer but a string. The program would crash right? And to prevent it from crashing we use exception handling with