Calculator; ans do not break after default command

after defalt case it keeps on showing same result and don’t take further input. I have written 2 different codes.


Hey!
Please check the comments in the below code

Thanks!

thx bro that as really helpful

Please mark the doubt as resolved if you’re satisfied with the explanation.