mmm, maybe I didn't understand something ... this's my new code
Code:
#include <stdio.h>
#include <math.h>
int main(void)
{
double x;
double myround(double number);
while(1)
{
printf("Enter a number");
scanf("%f", &x);
printf("myround(%f) = %f", x, myround(x));
}
return 0;
}
double myround(double number)
{
return floor(number +.5);
}
Did you mean gcc -lmon asd.c?
Code:
$: gcc -lmon asd.c
/usr/bin/ld: cannot find -lmon
collect2: ld returned 1 exit status
I use Debian Gnu/linux and Glibc,
Code:
$: ls /usr/include/|grep ^math
math.h