I know the way to compute digits of factorial in the following manner.
let digits of n! to be found.
temp = 0.0;
for(i = 1; i <= n; i++){
temp += log(i);
}
result = (int)temp;
result++;
i'm here looking for more efficient way to count digits of factorial.
N.B: please ans in coding with C++