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
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
C
how to write this pattern code in c langauge?
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
vishal purwar
#1
how to write this pattern code in c langauge?
Oct 3 '10, 03:57 PM
1
2 3
4 5 6
7 8 9 10
11 12 13 14
weaknessforcats
Recognized Expert
Expert
Join Date:
Mar 2007
Posts:
9214
#2
Oct 3 '10, 04:35 PM
First, write a loop that cycles 14 times.
Second, inside that loop write another loop that a) prints your number and b) based on the cycle of the outer loop displays a \n.
You will need a loop counter in the outer loop that you can test inside the inner loop.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment