adplus-dvertising
frame-decoration

Question

The C#.NET code snippet given below generates ____ numbers series as output?

int i = 1, j = 1, val;
while (i < 25)
{
    Console.Write(j + " ");
    val = i + j;
    j = i;
    i = val;
}

a.

Prime

b.

Fibonacci

c.

Palindrome

d.

Odd

Answer: (b).Fibonacci

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. The C#.NET code snippet given below generates ____ numbers series as output?