Use gcc -o question2 question2.c -lm to compile