Step 1: Read the 100 prices.
Step 2: Compare the first price with the next and let the greater of the two be ‘max’ in the ‘max index.’
Step 3: Loop it until the largest price has been found.
Step 4: Reduce the ‘max’ value by 10% using the formula: prices [max index] = prices [max index] x 0.9.
Step 5: Print.