my teacher told us to give the input of the following output given..using c++ loop formula..

pls help me..

output:

1) *
***
*****
***
*

2) * *
** **
******

3) ******
** **
* *

hoping for your help..

thanks in advance..

;) ;) ;) ;)

my teacher told us to give the input of the following output given..using c++ loop formula..

1) *
***
*****
***
*

2) * *
** **
******

3) ******
** **
* *

Please be more specific.

Good luck, LamaBot

Surely you've been covering loop constructs in class. Now your teacher wants you to use what you've been taught. Clue: for loops are very handy.

We won't do your homework for you, but post a reasonable attempt and explain what doesn't work and then we'll try to fix it up. ;)

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.