employer cover photo
employer logo
employer logo

Rockwell Automation

Is this your company?

Rockwell Automation interview question

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

Interview Answer

Anonymous

15 Mar 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