In the code everything works fine but at last in line 33 the code say 0 to continue and any key to finish the program while I press and letter the console spam the result I wanted to know how to deal with this and how to fix it.
I beleive its because "num" is integer but I don't know how to deal with it..