Computer Science, asked by abhineshpatel7527, 1 year ago

Where to write assembly language program?

Answers

Answered by Anonymous
6
hii dear!!

here ur answer!!

▪In this section, we’ll use a popular example, the nth Fibonacci number, to illustrate multiple solutions in assembly language. The C function would be like:

Hide Copy Code

unsigned int Fibonacci(unsigned int n)
{
unsigned int previous = 1, current = 1, next = 0;
for (unsigned int i = 3; i <= n; ++i)
{
next = current + previous;
previous = current;
current = next;
}
return next;
}

!hope help u plz mark brainlist dear!
____________________________
Similar questions