Compile with lm flag to make gcc link code with math library
gcc main.c -o main.o -lmRun the code using
./main.oYou must have installed either Visual Studio and the optional Visual C++ components, or the Build Tools for Visual Studio.
cl main.cTo run
mainThe code can also be executed on DevCpp application