sqrt: returns the square root of num : sqrt « math.h « C / ANSI-C






sqrt: returns the square root of num


    

//Declaration: float sqrtf(float num); 
               double sqrt(double num); 
               long double sqrtl(long double num);  
 

    
  


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

  int main(void)
  {
     printf("%f", sqrt(16.0));
  }

         
/*
4.000000*/         

           
       








Related examples in the same category