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: void fizzbuzz(int n){
for(int i=1;i<=n;i++){
        if(i%3==0 && i%5==0){cout<<"FizzBuzz"<<" ";}
        else if(i%5==0){cout<<"Buzz ";}
        else if(i%3==0){cout<<"Fizz ";}
        else{cout<<i<<" ";}
}
}, In this Programming Language: C++, Now tell me if this Code is compilable or not?