Hi everyone,I tried to catch an exception which works for about 2 seconds but then the program still for some reason crashes on me I will get the output 2maybe you tried to devide by zero" but straight after the program still crashes,does anyone know how I can fix this and also why it still crashes
Everything after the try catch block will always run, no matter if an exception was thrown earlier or not, so if b is zero you'll be dividing by zero on line 24.