What is the problem in this code replace pi

https://ide.codingblocks.com/s/270105 it gives segmentation fault

@rohitkandpal683 see the base case https://ide.codingblocks.com/s/270116

Dont forget to mark it as resolved!