Link to my code is----https://ide.codingblocks.com/s/61038
I am not able to get where my code is going wrong.
Please point out the error in my approach.
DOUBT IN --"Ugly Numbers"
Can you please explain your approach here.
The code is working absolutely fine.
Hi Nikhil, just change the data type to long instead of int. Rest of the logic works fine. Here is the correct code https://ide.codingblocks.com/s/61141.