can anyone show me how to go about this.
I've been trying to use a log to base 2
in c. the code atually works but it requires
me to type in a char after typing the number
i'm getting the log of
#include<stdio.h>
#include<limits.h>
#include<math.h>
void main()
{
printf("min_int = %i\n", INT_MIN);
printf("max_int = %i\n", INT_MAX);
int Log10(INT_MAX)
{
Log10 = Log(INT_MAX) / Log(10);
return Log10;
}
printf("This is a = %i -bit system\n", Log10(INT_MAX)+1);
}