Arm/odd

From ASMBits

arm/invertPrevious

Write a function that returns the whether its parameter is odd. Return 1 if odd, 0 if even. Your algorithm's runtime should not grow with the value of n because there is a runtime limit on your function of 10000 instructions.

int odd (int n);

Expected solution length: Around 2 lines.

Sample Input

1
2

Sample Output

1
0

Write your solution here

Upload a source file...