cout << log10(1000) << endl; // from math.h library // Custom function int log(int a, int b) { // log base 10 return log2(a) / log2(b); }
cout << log10(1000) << endl; // from math.h library // Custom function int log(int a, int b) { // log base 10 return log2(a) / log2(b); }