cSamples: fix pi calculator build script
[c] add pi by infinite series