How to use square root in C

1 Answer

0 votes
#include <stdio.h>
#include <math.h>

int main()
{
    printf("%lf\n", sqrt(36));
    printf("%lf\n", sqrt(20));
    
    return 0;
}



/*
run:

6.000000
4.472136

*/

 



answered May 7, 2019 by avibootz
...