cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Pascal triangle
Pascal triangle
Oct 28, 2011 at 12:35am UTC
lanceTCT
(40)
can anyone help me with...
123456 12345 1234 123 12 1
Oct 28, 2011 at 12:54am UTC
shacktar
(1187)
There are
N
rows (in this case, N = 6). If you index the rows as
K = N
,
N - 1
,
N - 2
, ...,
1
, then row
K
has
N - K
spaces followed by the numbers
12...K
.
Topic archived. No new replies allowed.