Computing.Net > Forums > Programming > character display using for loop

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

character display using for loop

Reply to Message Icon

Name: suman saurabh
Date: November 14, 2009 at 03:24:05 Pacific
OS: Windows XP
Subcategory: C/C++
Comment:

print as the following format:
*
* *
* * *



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: November 14, 2009 at 04:11:30 Pacific
Reply:

gee, who'da thought


=====================================
Helping others achieve escape felicity

M2


0

Response Number 2
Name: StuartS
Date: November 14, 2009 at 04:22:29 Pacific
Reply:

You never can tell!

Stuart


0

Response Number 3
Name: Suyash
Date: November 21, 2009 at 10:48:20 Pacific
Reply:

use this code snippet
--------------------------------------
int i, j ;
for(i=0; i < 3; i++)
{
for(j=0; j < i; j++)
printf(" * ");

printf("\n");
}

---------------------------------------
the 3 is used if there are 3 lines. replace by any number for desired results.


0

Response Number 4
Name: Subhadyuti
Date: November 22, 2009 at 02:52:02 Pacific
Reply:

can anyone please draw the pattern given below using "for loop" structure in C:------

A
AB
ABA
ABAB
ABABA


0

Response Number 5
Name: Mechanix2Go
Date: November 22, 2009 at 05:45:23 Pacific
Reply:

I don't know what C:------ is but I'll stay tuned.


=====================================
Helping others achieve escape felicity

M2


0

Related Posts

See More



Response Number 6
Name: Razor2.3
Date: November 22, 2009 at 06:51:29 Pacific
Reply:

Someone should get this out of the way; might as well be me:

Awesome. When you get past the, "Have people on the Internet do my homework for free" stage, let us know.

If you start doing your homework yourself, but run into problems, feel free to ask us. Make sure to include the code you're having problems with.

If you prefer to have the Internet to do your homework, well, that's an option, too.


0

Sponsored Link
Ads by Google
Reply to Message Icon

wifi system Batch output parameters


Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: character display using for loop

using for loops to interate unicode www.computing.net/answers/programming/using-for-loops-to-interate-unicode/12858.html

loops in c-how to use for loop for a perticul www.computing.net/answers/programming/loops-in-chow-to-use-for-loop-for-a-perticul/18967.html

c++ homework help - vector for loop www.computing.net/answers/programming/c-homework-help-vector-for-loop/17650.html