main.c:(.text+0x1b8): undefined reference to `sqrt’

Issue:

main.c:(.text+0x1b8): undefined reference to `sqrt’

Fix method:

gcc -o main main.c -lm

-lm: Include math.h library.