If you are reading this post thanks for your help, I really do appreciate your help... Now on to my question I am trying to write a program that reads and echoes integers until the difference between two successive integers is greater than, or equal to, 10. [I'll need the abs() function to find the absolute value of the difference. but I dont know how to use that function, here is an example of how I would like it to work:
Enter Some Numbers
14 is Greater than 10!
Note, The above is an example. You need to get the numbers from the user one at a time!
Create a function called diff that evaluates the absolute difference between the last two integers entered from the user. if the difference is greater than or equal to 10, the funcion will return false. Otherwise, it returns true.
Your main function should contain all other logic for the program. It should call the diff function each time a new integer is entered.
Pass the newly entered and previous integer values to the diff function which will compare the two.
I apoligize about the length of this post, but if you can point me into at least the right way to start this, I would greatly appreciate it. Thank you