C Tutorial/math.h/sqrt — различия между версиями

Материал из C\C++ эксперт
Перейти к: навигация, поиск
м (1 версия: Импорт контента...)
 
(нет различий)

Текущая версия на 13:32, 25 мая 2010

sqrt

Item Value Header file math.h Declaration float sqrtf(float num);double sqrt(double num);long double sqrtl(long double num); Return returns the square root of num.


<source lang="cpp">#include <math.h>

 #include <stdio.h>
 int main(void)
 {
    printf("%f", sqrt(16.0));
 }</source>