Consider the following function.
Void gradeup(int n)
{
enqueue(Q,0);
enqueue(Q,1);
for (i=0;i<n;i++)
{
x = dequeue(Q);
y = dequeue(Q);
enqueue(O,y);
enqueue(Q+x+y);
print(x);
}
}
What is the functionality of above function gradeup?
A
Prints numbers from 0 to n-1
B
Prints number from n-1 to 0
C
Prints first n fibboacci numbers
D
Prints first n fibbonacci number in reverse order