I need to print each value inputted until a certain number is inputted to stop (let\'s say 10) in a reversed order with the total minimum value subtracted from each when outputt