Stuck on a friend's challange
Hi there.
A friend and I always are throwing simple challanges at each other and I'd hate to say it but I think my friend has gotten me stumped.
Heres his instructions:
"Devin it took me a while to think of this but this one will get you. Using only loops create me a program that creats boxes to look like the one below.
Code:
1 1 1 1 0
1 1 1 0 -1
1 1 0 -1 -1
1 0 -1 -1 -1
0 -1 -1 -1 -1
The basic idea is to create a program where if I want a box thats 10x10 it will create it to look similar to that one above. The top left corner has '1' the lower right corner has '-1' and there is a line of '0' that go from top right corner to the lower left corner.
If you get stumped I want my pizza with pineapple and canadian bacon."
If there's anyone that can help ANY help would be appreciated.
even if its the recommendation of a good pizza place.
Thank You