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 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.