You can either increment or decrement the loop control varia…