First we have to assume that a[0] is biggest. Now store the value of a[0] inside a variable called big.…