-
Compiling and running c code using gcc:
gcc fileName.c -o outputFileName
./outputFileName
-
Compiling and running c++ code using g++:
g++ fileName.c -o outputFileName
./outputFileName
Add -lm
flag for linking math.h
-
Compiling and running java code using javac:
javac ClassName.java
java ClassName
-
Running python:
python fileName.py