Link of code:https://ide.codingblocks.com/s/337307
hello @KetanPandey please check ur previous thread , i have replied there