This program is written in java. It compares numbers inserted into the array and displays the minimum number.