Well I added this:
for(seed; seed <= size; seed++)
{
cout << seed << " ";
}
Type: Posts; User: jegland
Well I added this:
for(seed; seed <= size; seed++)
{
cout << seed << " ";
}
ugh, it messed up the triangle
1 2 4 7 2 7
--3 5 8 3 8
----6 9 4 9
------1 5 1
---------6 2
-----------3
Thats how its supposed to look, ignore the dashes
Here's what the book says:
Parkside's Other Triangle is generated from two positive integers, one for the size and one for the seed. For example,
Size 6, Seed 1
1 2 4 7 2 7
3 5 8 3 8
...