How do you make a program in which you must submit a number N which can vary from 3 to 100 or N Є [3 ;100 ] And you make an array submitting elements inside it. If the subtraction of the first and second number equals the subtraction of the last and second to last element . Then if the subtraction of the second and third number equals the subtraction of second last and third last and so on...
By the way absolute values also work |9 - 8| = |7 - 8|
Example:
Entry:
5
3 3 1 3 3 - yes