
#include <lcmath.h> double fmin(double s, double r);
fmin finds the minimum of two double values, s and r.
fmin returns a double value that represents the minimum of the two
arguments.
fmin is a built-in function.
#include <lcmath.h>
#include <stdio.h>
main()
{
double num1, num2; /* numbers to be compared */
double result; /* holds the smaller of num1 and num2 */
puts("Enter num1 & num2 : ");
scanf("%lf %lf", &num1, &num2);
result = fmin(num1, num2);
printf("The smaller number is %fn", result);
}
fmax, min
Copyright (c) 1998 SAS Institute Inc. Cary, NC, USA. All rights reserved.