I am hard up creating a nested loop for this one. can someone help me.Thanks.
Output:
181614121
27252321
3634323
454341
54525
6361
772
81
9
Nathan_11 0 Newbie Poster
Recommended Answers
Jump to PostWhat is there about the output that makes you think you need a nested loop?
You can generate that print out with a single call to println by using \n characters to put the next String on the next line.
Jump to PostAre those numbers random, or is there a pattern I can't see?
All 6 Replies
NormR1 563 Posting Sage Team Colleague
Nathan_11 0 Newbie Poster
NormR1 563 Posting Sage Team Colleague
Nathan_11 0 Newbie Poster
Onlineshade -6 Posting Whiz
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.