hi people i am new to this site ... i needed a bit of help i have got an home work to create this
:the use will enter 6 random numbers and the computer will print the series
:input: 10,5,6,4,3,6
output:
10 5 6 4 3 6
5 1 2 1 3
4 1 1 2
3 0 1
3 1
2
i have tried to do it using arrays but i can do it but by a process which wastes momory ..i declare 6 arrays and then do calculation ...and print all the 6 arrays in correct format
is there any way to do it in one or 2 arrays ...im not asking for a full code ...instead just some suggestions
btw in the series above the number in each line after the first one is the difference between the two numbers above it (left and right)