I wrote the same logic as explained in the video, but this code is giving garbage value to me.
Is there any error in the explained concept in the video, or the error is in my code?
Please explain the error & provide the correct solution🙏
My Code -> https://ide.codingblocks.com/s/362027
