#include <stdio.h>
#include <math.h>
int main () {
float a, b, c, s, ar;
s=((a+b+c)/2);
printf("Ingrese los lado del triangulo");
scanf("%f%f%f",&a,&b,&c);
ar=(sqrt(s*(s-a)*(s-b)*(s-c)));
printf("el perimetro es %f",ar);
return 0;
}
I do not understand why when compiling me throw this error
tmp/ccs6PFsP.o: En la función main':
ejercicio 34.c:(.text+0x87): referencia asqrt' sin definir collect2: error: ld returned 1 exit status