This prints the pyramid of only 1's. I'm still working on the system.
Code:
for (int i = 0, l = 8; i < 9; i++, l--) { for (int j = 0; j < 17; j++) { if (j < l || j > l + (16 - (l+l))) System.out.print(" "); else System.out.print(1); } System.out.println(); }
Ack, I'm a bit stuck here. Can't seem to figure it out at the moment
I'll write later if I figure something out. Gotta eat and work on some Java on my own now
EDIT: Think I got an idea. A number has an amount of preceding numbers, and a an amount of possible descendant numbers. In the system it seems as when the amount of descendent numbers are less than preceding numbers it counts down. (This is vertically)
But I must eat first before I try it out. Looks good on paper though.
Users browsing this forum: No registered users and 2 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum