There is no need to convert it to C. It is already C code. But it uses conio.h, which is a non-standard C extension that is not supported by all compilers.
Remove the include for conio and remove the call to getch at the end and you're left with standard, portable C code.