FizzFizz by croyal

public class Fizz{\x0d
   public static void main(String[] args){\x0d
      for(int n=1;n<=100;n++){\x0d
         int i = n;\x0d
         String s="";\x0d
         while(i%3==0){\x0d
            s+="Fizz";\x0d
            i/=3;\x0d
         }\x0d
         while(i%5==0){\x0d
            s+="Buzz";\x0d
            i/=5;\x0d
         }\x0d
         if(s.equals("")){\x0d
            System.out.println(i);\x0d
         } else {\x0d
            System.out.println(s);\x0d
         }\x0d
      }\x0d
   }\x0d
}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page