/**
 *  Copyright (c) 2015, 2016 François Michel, Ludovic Taffin
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Affero General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Affero General Public License for more details.
 *
 *  You should have received a copy of the GNU Affero General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package student;

public class Exercice6Corr {

    // Code a verifier
    public static String[] fizzbuzz(int n){
        String[] tableau = new String[];
        int i=1;
        while(i <= n){
            string temp ="";
            if(i%15==0) temp = "fizzbuzz";
            else{
                if(i%3==0) temp="fizz";
                if(i%5==0) temp="buzz";
                else temp=""+i;
            }
            tableau[i]= temp;
            i++;

        }
        return tableau;
    }
}

@@ -890,16 +890,17 @@
  String%5B
+n
 %5D;%0A     
@@ -946,17 +946,17 @@
         
-s
+S
 tring te
@@ -982,24 +982,41 @@
  if(i%2515==0)
+%7B%0A               
  temp = %22fiz
@@ -1031,24 +1031,25 @@
             
+%7D
 else%7B%0A      
@@ -1064,24 +1064,45 @@
   if(i%253==0)
+%7B%0A                   
  temp=%22fizz%22
@@ -1099,24 +1099,52 @@
 emp=%22fizz%22;%0A
+                %7Delse %7B%0A    
             
@@ -1153,22 +1153,55 @@
   if
+ 
 (i
-%255
+ %25 5 
 ==
+ 
 0)
+ %7B%0A                       
  temp
-=
+ = 
 %22buz
@@ -1219,16 +1219,22 @@
         
+     %7D
  else te
@@ -1239,15 +1239,23 @@
 temp
-=%22%22+i;%0A
+ = %22%22 + i;%0A    
     
@@ -1256,32 +1256,46 @@
               %7D%0A
+            %7D%0A
             tabl
@@ -1299,16 +1299,18 @@
 ableau%5Bi
+-1
 %5D= temp;

edit solution