[QUOTE]how did it have the output 0,1,4,11,26;[/QUOTE] Did you take out the print statement? The code you posted doesn't output anything. Have you written a small program and put that code in it and executed it? To see what the code does add a println statement just after the for … Read More
Edited by Ezzaral: incompleteAdded code tags. Please use them to format any code that you post.
Edited by pudgeeboy: n/a
Edited by visnuvaratan: n/a