Nios/ifelse1
From ASMBits
nios/loaddecl4Previous
Nextnios/ifthen
Write a function that determines whether its parameter is odd, then calls odd or even depending on whether the number is odd or even.
void oddeven (int n);
You are provided the functions odd and even. To make the problem easier, these two functions do not clobber any registers.
Expected solution length: Around 10 lines.
Sample Input
1
Sample Output
[no output, odd() is called]
nios/loaddecl4Previous
Nextnios/ifthen