Hello..guys..
Thank u for the answer for previous question..
Now..I got new question for log function..
Code:
#include <stdio.h>
#include <math.h>
int main(int argc, char *argv)
{
int n;
...
...
Print_Round(n);
...
...
}
Print_Round(int k)
{
int j=1;
while ( j < (log10(k)/log10(2)) {
printf("Round is %d\n",j);
}
}
I wrote code like that..but there is error when I compile..
I got those message..
Code:
/var/tmp/ccSHNicS.o: In function `Print_Round':
/var/tmp/ccSHNicS.o(.text+0x1f0): undefined reference to `log10'
/var/tmp/ccSHNicS.o(.text+0x20f): undefined reference to `log10'
collect2: ld returned 1 exit status
anybody help me out why the error occurs??