For this Question: Given an integer n, For each i from 1 to N if i is even print "<b>even</b>" else print "<b>odd</b>".<b>User task:</b>
Since this will be a functional problem, you don't have to take input. You just have to complete the functions <b>For_Loop()</b> that takes the integer n as parameter.

</b>Constraints:</b>
1 <= n <= 100

<b>Note:</b> 
<i>But there is a catch here given user function has already code in it which may or may not be correct, now you need to figure out these and correct if it is required</i>Print even or odd for each i separated by white spaces.Sample Input:
5

Sample Output:
odd even odd even odd

Sample Input:
2

Sample Output:
odd even, I have written this Solution Code:  public static void For_Loop(int n){
           for(int i=0;i<n;i++){
               if(i%2==1){System.out.print("even ");}
               else{
                   System.out.print("odd ");
               }
       }
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?