| Description
Shows an example of
the ceil function which rounds up
to the next highest integer
Code
#include <stdio.h>
#include <math.h>
int main()
{
printf("ceil examples\n");
printf("The value %f is %f\n",
5.1 ,ceil(5.1));
printf("The value %f is %f\n",
4.9 ,ceil(4.9));
return 0;
}
Information
tested using LCC Win
32
|