Hi I am doing an assignment in my Java class and I need to connect the nodes to make a 12 pointed star. I have already drawn out the star and figured out which nodes to connect together. The only thing I cannot get is to show all of the nodes in the order they connect. I can only get the first 3 nodes to show up. I need it to wrap around and basically keep adding 5 to the last node until all numbers 0-11 are used. Any suggestions on what I can do to make that happen? I feel like it is one little bit of code I need to put in but I cannot figure out what it is.
And the out put so far is: 0 5 10
I need it to be: 0 5 10 3 8 1 6 11 4 9 2 7