Translate the code into CMa or assembly code

I need to translate the following code into CMa or assembly code:
int result;

int fibo (int n) {

int result;

if (

switch (n) {

case 0 : return 0; break;

case 1 : return 1; break;

default : return fibo (n + 1)+fibo (n -2);

}

}

int main() {

int n;

n = 5;

result = fibo (n);

return 0;

}

It does not need to compile – just be translated.

Leave a Reply

Your email address will not be published. Required fields are marked *