For this Question: Given a number N for each i (1 < = i < = N), you have to print the number except :-
For each multiple of 3, print "Newton" instead of the number. 
For each multiple of 5, print "School" instead of the number. 
For numbers that are multiples of both 3 and 5, print "NewtonSchool" instead of the number.The first line of the input contains N.

<b>Constraints</b>
1 < = N < = 1000
Print N space separated number or Newton School according to the condition.Sample Input:-
3

Sample Output:-
1 2 Newton

Sample Input:-
5

Sample Output:-
1 2 Newton 4 School, I have written this Solution Code: import java.util.*;
import java.lang.*;
import java.io.*;

class Main
{

static void NewtonSchool(int n){
for(int i=1;i<=n;i++){
        if(i%3==0 && i%5==0){System.out.print("NewtonSchool ");}
        else if(i%5==0){System.out.print("School ");}
        else if(i%3==0){System.out.print("Newton ");}
        else{System.out.print(i+" ");}
}
}
	public static void main (String[] args) throws java.lang.Exception
	{
	
        Scanner sc = new Scanner(System.in);
        int x= sc.nextInt();
        NewtonSchool(x);
	}
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?