here u have checked the value of ch by printing it and then u did ch=ch-1; operation but if we have write this code on paper then we wont be able to check the value of ch by printing it ,then how will we know that we have to perform ch-1 operation.
quest-https://online.codingblocks.com/player/16974/content/259?s=3855
Understanding the code
Hi Shubham, can you please tell the name of the video resource you are referring to
limk is given there ,one in which u print ABCD PAattern porblem ,in the loop section
Hi Shubham, while writing any code on paper you should always build it’s algorithm first and make sure it is correct. You can do this by dry running it in some rough space. After you are sure your logic is correct, convert it to code and write it as your final answer.
Hope this helps
u r right but the way is that - u should learn this thing now and from now onwards u will be able to write it on paper also. ryt? this happened with u because u were not aware of this trick/concept initially. but now u know, so no issue is there.
Hi, the concepts and logic-building develops over time as you practice more and more problems. So, when you’ll solve similar questions in future, you’ll already know the tricks.