Hi Team,
code working fine on my local machine, in IDE giving core dumped.
hello @Mahesh
u need to give input in input box before running ur code.
thank you it worked.