Replace all pi using recursion

https://ide.codingblocks.com/#/s/15411

question link : https://hack.codingblocks.com/contests/c/452/71

please help

There is something that you have written wrong . I have modified ur code . Check here
https://ide.codingblocks.com/#/s/15417

no, it is not working please check again. thanks!

Ohh yess , i missed to reassign the value of k to 0 at every iteration
https://ide.codingblocks.com/#/s/15584