No one here is going to convert that C code into LabVIEW since this forum is not a code-writing service. We provide suggestions and help to answer questions, but we don't do people's work or homework. In your specific case you have a C program which was written to be a console application. One way to integrate this into LabVIEW is to convert the console application into a DLL. This is not a LabVIEW issue, as it's a C issue. Once you have the DLL then you can call it from LabVIEW. If you do not know how to convert the application into a DLL then I would suggest following up on altenbach's suggestion and instead of showing us the C code then show us where the algorithm is defined in mathematical terms.