if user input = 216789
then I want array output like that =
[ 22,21, 26, 27, 28, 29,11, 12, 16,17,18,19,62,61,66,67,68,69,71,71,76,77,78,79,82,81,86,87,88,89,92,91,96,97,98,99]
In other words, all possibilities of numbers entered by the user
is the user enters 1234 [this is four digit number then total possibilities 4 * 4 = 16}
so I want the output of all possibilities in array form that value entered by the user
- Another concept
in this , user give two inputs
first input = 10 ;
second input = 50;
then i want array = [10,11,12,13,14…47,48,49,50];
on the other hand
first input = 50;
second input = 10;
then same output array like = [10,11,12,13…48,49,50];