Once you attempt the question then PrepInsta explanation will be displayed.
Initially, _no1=0, _no2=1, _no3=1, _lower=6, _inc=1
Since,( _inc <= _lower ) => (1<=6), The condition of the while loop is true,
So, in first iteration, _inc is incremented by 1 => _inc = 2,
_no3 will gets printed (i.e 1), and _no = _no1 + _no2 => _no3 =(0+1) = 1,
And, _no1=1, _no2 = 1
Since,( _inc <= _lower ) => (2<=6), The condition of the while loop is true,
So, in second iteration, _inc is incremented by 1 => _inc = 3,
_no3 will gets printed (i.e 1), and _no = _no1 + _no2 => _no3 =(1+1) = 2,
And, _no1=1, _no2 = 2
Since,( _inc <= _lower ) => (3<=6), The condition of the while loop is true,
So, in third iteration, _inc is incremented by 1 => _inc = 3,
_no3 will gets printed (i.e 2), and _no = _no1 + _no2 => _no3 =(1+2) = 3,
And, _no1=2, _no2 = 3
Since,( _inc <= _lower ) => (4<=6), The condition of the while loop is true,
So, in fourth iteration, _inc is incremented by 1 => _inc = 5,
_no3 will gets printed (i.e 3), and _no = _no1 + _no2 => _no3 =(2+3) = 5,
And, _no1=3, _no2 = 5
Since,( _inc <= _lower ) => (5<=6), The condition of the while loop is true,
So, in fifth iteration, _inc is incremented by 1 => _inc = 6,
_no3 will gets printed (i.e 5), and _no = _no1 + _no2 => _no3 =(3+5) = 8,
And, _no1=5, _no2 = 8
Since,( _inc <= _lower ) => (6<=6), The condition of the while loop is true,
So, in first iteration, _inc is incremented by 1 => _inc = 7,
_no3 will gets printed (i.e 8), and _no = _no1 + _no2 => _no3 =(5+8) = 13,
And, _no1=8, _no2 = 13
Since,( _inc <= _lower ) => (7<=6), The condition of the while loop is false,
Hence, the loop will not executes further, so the output will be 1 1 2 3 5 8