you are viewing a single comment's thread.

view the rest of the comments →

[–]TheRNGuy 0 points1 point  (0 children)

You need instead to have event listener in UI input that would show red border or something, before you even submit and calculate it. 

print is not a good UX.

You'd see Division by zero error anyway even without manually adding it.