For this Question: Given an array A of size N. You need to find the root mean square (RMS) of the array i. e you first need to square all values of array and take its mean. Then you need to return the square root of mean. Print the answer with precision upto 6 decimal places.The first line contains an integer N - the size of the array
The next line contains N space-separated integers - the elements of the array.

<b>Constraints:</b>
1 <= N <= 100
1 <= Ai <= 100Print the RMS value of the array.Sample Input 1:
4
1 2 3 4

Output:
2.738613

Sample Input 2:
2 
7 13

Output:
10.440307

<b>Explanation 1:</b>
Sum of squares = 1 + 4 + 9 + 16 = 30
Mean = 30 / 4 = 7.5
Taking a square root of 7.5 gives 2.738613

</b>Explanation 2:</b>
Sum of squares = 49 + 169 = 218
Mean = 218 / 2 = 109
Taking the square root of 109 gives 10.440307, I have written this Solution Code: /*package whatever //do not write package name here */

import java.io.*;
import java.util.Scanner;
import java.lang.Math;

class Main {
	public static void main (String[] args) {
	    int n;
	    Scanner s = new Scanner(System.in);
        n = s.nextInt();
        double x=0;
        double sum=0;
        for(int i=0;i<n;i++){
            x=s.nextDouble();
            sum+=x*x;
        }
        sum/=n;
        sum=Math.sqrt(sum);
        System.out.printf("%.6f",sum);
	}
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?