Write a Visual Logic program which accepts a series of integers, until the first negative value is entered. When the terminating negative number is entered, output the maximum of those non-negative numbers that were entered. If the first value entered is negative, output an appropriate message.
Here are some data sets, which your program must be capable of processing.
Example 1
Entered numbers: 5, 9, 25, 44, 9, 0, 35, 2, 7, 0, 7, 19, -8
Output: 44. This is the greatest value entered.