Java examples: Fizz Buzz


for (int i = 0; i <= l; i++){

    boolean f = i % 3 == 0, b = i % 5 == 0;

    String output = f ? b ? i + " FizzBuzz" : i + " Fizz" : b ? i + " Buzz" : i + "" ;

    System.out.println(output);

}