Debug the following program, so that the appropriate output…

Debug the following program, so that the appropriate output can be obtained.The current output is;1 : 1 : 2 : 4 : 8 : 16 : 32 : 64 : 128 : 256 :The appropriate out is;1 : 1 : 2 : 3 : 5 : 8 : 13 : 21 : 34 : 55 :// We want to display first 10 Fibonacci numbers.      for (i = 1; i

Debug the following program, so that the appropriate output…

Debug the following program, so that the appropriate output can be obtained.The current output is;FalseThe appropriate out is;a < b < c// We want to compare if a < b < c is true.double a = 0.1, b = 0.2, c = 0.3;  // Not allowed to modify.      if (a < b < c)           cout