to compile:
$ gcc exercise.c -o exercise
to execute:
$ ./exercise
to compile with the math.h library:
$ gcc exercise.c -o exercise -lm
to compile with standard filename a.out:
$ gcc exercise.c
to compile with standard filename a.out and execute in the same line:
$ gcc exercise.c ; ./a.out