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;-858993460The appropriate out is;30// We want to show the fifth element of the array Ary.int Ary[5] = { 40, 20, 10, 50, 30 };          // Not allowed to modify.      cout

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;True// We want to compare if (a + b) is equal to c.double a = 0.1, b = 0.2, c = 0.3;   // Not allowed to modify.     if ((a + b) == c)           cout

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