Hello All,
I am desperate for help. I have spent the last 2 days staring at this code and not getting anywhere (please see attached project files).
The project requires a number sequence to be output as a text file.
Starting number is input by user (number is in sequence ie. 1 2 3 4)
the last digit then increments to 45 (1 2 3 45)
then the proceeding digit increments by 1 and the sequence starts again (1 2 4 5) with the last digit going up to 45 (1 2 3 4 6 45) this repeats until (1 2 44 45) and then the 2nd digit starts incrementing (1 3 4 5) final output will be (1 43 44 45)
no digit is ever less than the one proceeding it.
The project should be able to take any number up to 40 41 42 43 (which will finish 40 43 44 45)
this is an example of the output I am getting (in red is whats missing):
38 39 40 41
38 39 40 42
38 39 40 43
38 39 40 44
38 39 40 45
38 39 41 42
38 39 41 43
38 39 41 44
38 39 41 45
38 39 42 43
38 39 42 44
38 39 42 45
38 39 43 44
38 39 43 45
38 39 44 45
38 40 41 42
38 40 41 43
38 40 41 44
38 40 41 45
38 40 42 43
38 40 42 44
38 40 42 45
38 40 43 44
38 40 43 45
38 40 44 45
38 41 42 43
38 41 42 44
38 41 42 45
38 41 43 44
38 41 43 45
38 42 43 44
38 42 43 45
38 43 44 45
If someone could help it would be greatly appreciated! Thanks in advance!