Twenty-five numbers are entered from the keyboard into an array. The number to be searched is entered through the keyboard…