Question d’entretien chez Rockwell Automation

Code a program that will tell you if an integer is odd or even.

Réponse à la question d'entretien

Utilisateur anonyme

15 mars 2018

I wrote a small Java program on the white board that took an input number, did the modulus 2 of it, and if the modulus was 0 it was even and if it was not zero it was odd.

1