for loops statement

[b]i have a homework about this, i need to print out:
(a's are not included it is use for spacing)

1.
*****
****
***
**
*

2.
aaaa*
aaa* *
aa* * *
a* * * *

3.
aaaaaaa1
aaaaaa121
aaaaa12321
aaaa1236321


PLEASE HELP M
E. [/b]
lmao... this is out of accelerated c++. And you're asking for someone to do your hw for you. Which is looked down in all forums helping people code.

the first one is simple...

Have a variable represent the number of asterisk to print out then subtract it as your loop advances...

The second is simple as well as the third. have a variable to represent the number of spaces and when that is exhausted or something incrementing up to its value print the desired asterisk /number while decrementing the spaces

If statements could easily be used or switch statements to that count the lines and if argument is true simply print the output followed by \n
...And you're asking for someone to do your hw for you. Which is looked down in all forums helping people code.


I couldn't agree more.

At the least, you could show your code as is and then ask a specific question or ask for advice on a particular issue, instead of asking a blanket question like you did; "Here's the problem, what do I do?" is actually, I believe, not allowed on the forums
Topic archived. No new replies allowed.