hi I'm Maryam can you help me to draw this shape
* * *
* * * * * *
* * * * * * **
three triangles with the same base.

Recommended Answers

All 2 Replies

hi I'm Maryam can you help me to draw ( using c++)
three triangles with the same base.
thank you

Hello Maryam, I don't want to just give you the code, but to give you a hint: use a for loop which will iterate depending on the number of times you want to print.

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.