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