Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
C
Print * code
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
aashrith
New Member
Join Date:
Nov 2007
Posts:
3
#1
Print * code
Nov 28 '07, 05:04 AM
Can any body send the code.
My requirement is to print "*" like *
**
***
****
*****
chella
New Member
Join Date:
Mar 2007
Posts:
51
#2
Nov 28 '07, 05:07 AM
Originally posted by
aashrith
Can any body send the code.
My requirement is to print "*" like *
**
***
****
*****
Hi aashrith,
Send us what you have tried so far. Tell us where you have the problem.
Experts here are to help you.
Regards,
chella
Comment
Post
Cancel
AnilM823
New Member
Join Date:
Jan 2007
Posts:
9
#3
Nov 29 '07, 01:48 AM
As mentioned above, simply sending you the code won't help. Have you attempted this?
As a hint, try using a for loop, with a while loop nested inside (two counter variables)...
Comment
Post
Cancel
ginee
New Member
Join Date:
Nov 2007
Posts:
1
#4
Nov 29 '07, 08:34 AM
Hai ...Try this
for (int i=0;i<10;i++)
{
for( int j=0;j<i;j++)
{
cout<<"*";
}
cout<<"\n";
}
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment