here is my code written;
https://ide.codingblocks.com/s/64855
i think this code contain less variable and easy than what is taught in leture.
here is the questio link-https://online.codingblocks.com/player/16974/content/255?s=3855
Re writing the code for this problem using less variable
Hi Shubham, there are certainly many ways to solve a problem. You can opt for any.