Guardian C Library Calls Reference Manual
printf
3-142 128833βGuardian TNS C Library Calls Reference Manual
Reference to Library Calls
Example
In this example, printf fetches two arguments, formats them as fixed-decimal floating-
point numbers, and prints βThe square root of 25.000000 is 5.000000β:
#include <stdioh>
#include <mathh>
int main(void)
{
double r, x;
x = 25;
r = sqrt(x);
printf("The square root of %f is %f\n", x, r);
}