For this Question: Given an integer N. Print the value of PI with precision upto N decimal places.The only input line contains an integer N.

Constraints:
1 <= N <= 10Print the value of PI.Sample Input 1:
4

Output:
3.1416

Sample Input 2:
10

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

class Main {
	public static void main (String[] args) {
	    int n;
	    Scanner s = new Scanner(System.in);
        n = s.nextInt();
        if(n==1)System.out.printf("%.1f",Math.PI);
        else if(n==2)System.out.printf("%.2f",Math.PI);
        else if(n==3)System.out.printf("%.3f",Math.PI);
        else if(n==4)System.out.printf("%.4f",Math.PI);
        else if(n==5)System.out.printf("%.5f",Math.PI);
        else if(n==6)System.out.printf("%.6f",Math.PI);
        else if(n==7)System.out.printf("%.7f",Math.PI);
        else if(n==8)System.out.printf("%.8f",Math.PI);
        else if(n==9)System.out.printf("%.9f",Math.PI);
        else System.out.printf("%.10f",Math.PI);
        
		
	}
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?