Regarding P in the decimal

where we will initialize the p as in this video, p has been used in the for loop without initialization.
Also provide full solution

Can you tell me the name of the problem for which you are asking the code? Also if you can specify the time stamp(where you didn’t get the concept) will be time saving too.

I have watched the video, as p is the precision value (i.e., if p =3 then in that case it will be precise upto p decimal place of number [0.1, 0.01, 0.001] ) We have initialized it in main function when we were calling the function.
Here’s the code for the same

hello @kunkishj
u have reopend this doubt. what issue u r facing now?

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.