how to print ***

hello everybody...

I want to ask how to print

****
***
**
*

with repetition statements "for"

thanks for the answer
You need an external loop for the number of rows, internal for number per row. You may want to write the printing line as a separate function, so you can pass the number you want to print in the row.
Check my reply here: http://www.cplusplus.com/forum/beginner/17732/#msg89414

But you obviously need to learn how to use them so: http://www.cplusplus.com/doc/tutorial/control/
Last edited on
thanks for the response given... next...I want to learn about the function ..

but I want to print a string * to use FOR ...

Could it be written code ...

This assignment from my college ...

guidance of the master ...: D
Last edited on
Topic archived. No new replies allowed.