For this Question: An integer N is given to newton. He wants to print the squares of all the numbers from 1 to N in different lines. Help Newton to fulfill his wish.

<b>Example</b>
The number 3 is given to Newton hence he will print the squares from 1 to 3. Hence the output will be:
1
4
9The only input line contains an integer N.

<b>Constraints:</b>
1 &le; N &le; 1000Print N lines where the i<sub>th</sub> line (1- based indexing) contains an integer i<sup>2</sup>.Sample Input 1:
4

Sample Output 1:
1
4
9
16

<b>Explanation:</b>
1*1 = 1
2*2 = 4
3*3 = 9
4*4 = 16, 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();
            for(int i=1;i<=n;i++){
              System.out.println(i*i);
            }		
	}
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?