Compilers used:
- gcc ver 9.1.0
- g++ ver 9.1.0
-
How to compile c code using gcc:
gcc fileName.c -o outputFileName -
How to compile c++ code using g++:
g++ fileName.c -o outputFileName
Add -lm flag for linking math.h
How to run code:
./outputFileName