General Category > Software

Compute square root in C++

(1/1)

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

int main()
{
    double param, result;
    param = 386;
    result = sqrt (param);
    printf ("sqrt(%f) = %f\n", param, result);
    return 0;
}

Navigation

[0] Message Index

Go to full version