how to display this using for loop ?

***** *****
***** * *
***** * *
***** *****

thank you for helping.

restrictment commented: Asked 4 times for the same for-loop explanation +0

Recommended Answers

All 3 Replies

Well the top and the bottom are the same so you can just duplicate the
top at the end, and the middle two are the same. I see no reason to
use for loops for this.

how to display this using for loop ?

***** *****
***** * *
***** * *
***** *****

thank you for helping.

Code tags. We don't know what you're trying to do without them:

***** *****
***** *      *
***** *      *
***** *****

And we can't tell here either. Do it in a word processor with Courier font, then copy and paste with code tags. Oh, and show some effort too. We're not going to do this for you.

Sampson, this is your fourth thread asking, "How do I do <insert name> in a for loop?" within just 2 days...

I am beginning to think that you are doing this just for attention, as I cannot imagine a class that would just randomly assign 'for-loop' problems of such random increments in just two days on a weekend.
http://www.daniweb.com/forums/thread237124.html
http://www.daniweb.com/forums/thread237117.html
http://www.daniweb.com/forums/thread236472.html
http://www.daniweb.com/forums/thread236460.html

Please stop spamming these for-loop threads..

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.