#include #include // https://stackoverflow.com/questions/10409032/why-am-i-getting-undefined-reference-to-sqrt-error-even-though-i-include-math int main() { float x = 0.5; float result = sqrt(x); printf("The square root of %.3f is %.3f\n", x, result); return 0; }