Problem related to brute force


not be able to understand the 30th and 31st code

hello @vikash3303

the code u shared has only 29 lines.

please check

https://ide.codingblocks.com/s/339155 pls what is the error in the program and not be able understand 27th and 28th line of code

image

the while loop will run one more than the required time, that means it will add one extra inc in our inc.
so to removw that extra inc we have written statemnt of line 27.

line 28 is just dividing by 10.
basically that line is responsible for generating value (0.1,0.01,0.001,0.0001 so on)