May 2021 2 65 Report
¿como se usa la funcion sqrt en lenguaje c.?

include <stdio.h>

#include <math.h>

int main()

{float raiz;

int numero;

float raiz;

printf("numero");

scanf("%d",&numero);

raiz=sqrt(num);

printf("%f",raiz);

return(0);

}

el compila sin ningun error pero cuando le doy construir me sale

undefined to 'sqrt'

id returned 1 exit status.

alguien me puede ayudar no se como usar la funcion.


Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments




Helpful Social

Copyright © 2024 Q2A.MX - All rights reserved.