Regarding closing scanner

why scn.close() is not written ,in my case when i am running code error is coming scn in not close

Send your code on ide.codingblocks.com