My homework goes like this:
Write a program that accepts as many integers the user wants to input. Determine the highest and lowest numbers and subtract all other numbers from the highest number.
example: numbers to be entered: 6
number1 :15
number2:20
number3:29
number4:38
number5:12
number6: 42
Output:
Highest: 42
Lowest:12
[The difference from the highest is:
[42-15]=27
[42-20]=22 <---how can i display them?
[42-29]=13
[42-38]=4
[42-312]=30
.. please help me.thanks