For this Question: Find number of digits in the factorial of a number n.First line consists of a single integer denoting n
1 <= n <= 100000Output a single line containing number of digits in factorial(n).Sample Input
5

Sample Output
3

Explanation:-
5!=120
number of digits = 3

Sample Input
10

Sample Output
7, I have written this Solution Code: import java.io.*;
import java.util.*;

class Main
{
    public static void main(String args[])throws IOException
    {
        BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
        int t = 1;
        while(t-- > 0)
        {
            int N = Integer.parseInt(read.readLine());

            Solution ob = new Solution();
            System.out.println(ob.facDigits(N));
        }
    }
}


class Solution{

    static int facDigits(int n){

        double a=0.0;

        for(int i=2;i<=n;i++){

            a=a+Math.log10(i);

        }

       a=a+1;

        return (int)a;

    }

}, In this Programming Language: Java, Now tell me if this Code is compilable or not?