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 "Fizz" instead of the number. 
For each multiple of 5, print "Buzz" instead of the number. 
For numbers that are multiples of both 3 and 5, print "FizzBuzz" instead of the number.The input contains a single integer N.

<b>Constraints:-</b>
1 &le; N &le; 1000Print N space separated number or Fizz buzz according to the condition.Sample Input:-
3

Sample Output:-
1 2 Fizz

Sample Input:-
5

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

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