running good for custom input , code:https://ide.codingblocks.com/s/130810 plz reply at earliest.
hey @shakul, plz share ur logic…