Replace all PI recursions

Please debug my code .
Its not working.

Hey!
Your approach is almost correct, but there are some errors.


Please check the comments in the following code.

use char array instead of string
i have done it use this code

Why use a char array?
Why not string

@dsingh200021 hey darshpreet you can do this question also with string
string implementation