Error due to Scanner library

In the section, lecture no. 5( CRX- Even Odd)
The final code is not running because of the error coming in line 13 due to scanner, it is coming in warning that scn is never closed. That’s why I am not getting any output in console. What should I do now?

Please share the link to your code so that I can make changes in it and help you out.
Copy your code to the online ide https://ide.codingblocks.com/ and save it and then share its link.