| Description
This example shows how
to get the maximum and minimum values
when comparing two numbers
Code
#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("The minimum of %f and
%f is %f\n",6.0,12.0,min(6.0,12.0));
printf("the maximum of %f and
%f is %f\n",6.0,12.0,max(6.0,12.0));
return 0;
}
Information
tested using LCC Win
32
|