Hi guys I need to make a diamond like this for my lecturer,using nested for statements. I am having troubles. Can you guys give me any tips? ty.
Answered by diafol 3,720 in a post from
Jump to Post
I'll give you a few pointers, but you don't need to nest anything.
rows = 9
increment/decrement amount = 2
symbol = *
(textalign = center - for layout)
With this info you can create any size of diamond, as long as the rows = odd number. Once you hit …
All 3 RepliesReply to this topic
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.