Recommended Answers
Jump to Posthow did it have the output 0,1,4,11,26;
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 …
Jump to Posthttp://download.oracle.com/javase/tutorial/java/nutsandbolts/for.html They explain it well. For basic programming questions like these it's best to just google it.
All 10 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.