Be able to solve the Fizz Buzz programming problem
Réponses aux questions d'entretien
Utilisateur anonyme
5 juin 2015
So after that 2 hour interview, did they offered you a job, or you rejected the offer? Thanks
Utilisateur anonyme
17 juil. 2018
public void FizzBuzz(int x) {
for (int i = 1; i <= x; i++) {
if (i % 3 == 0 && i % 5 == 0) System.out.println(“FizzBuzz”);
else if (i % 3 == 0) System.out.println(“Fizz”);
else if (i % 5 == 0) System.out.println(“Buzz”);
else System.out.println(i);
}
}