i don't know if it allowed to ask like this,,
but this triangle make me confused(coz i'm new in C++)
but,can u teach me how to make it?/explain how am i supposed 2 do?

the triangle is like this:

1
                      2   3   4
                 2   3   4   5   6
            5   6   7   8   9   10  11
       7   8   9   10  11 12 13 14  15

perhaps someone out there can tell me whats gion'on that triangle??? please???...

Recommended Answers

All 6 Replies

Member Avatar for iamthwee

Is there a pattern. If there is then work out what it is.

i don't know if it allowed to ask like this,,
but this triangle make me confused(coz i'm new in C++)
but,can u teach me how to make it?/explain how am i supposed 2 do?

the triangle is like this:

1
                      2   3   4
                 2   3   4   5   6
            5   6   7   8   9   10  11
       7   8   9   10  11 12 13 14  15

perhaps someone out there can tell me whats gion'on that triangle??? please???...

this triangle doesn't make sense to me.. because you start each line with 2 on the first two lines.. and then 5 on the 4th line after it has already been used on the 3rd line..

this type of triangle would make more sense to me:

1
                   2  3  4
               5   6   7   8
            9    10  11  12  13
          14  15  16  17  18  19

where every number is used only once.

Member Avatar for iamthwee

It is also quite possible that Ancient Dragon edited so it has lost its original meaning.

                   1
               2  3  4
           5   6   7   8
        9    10  11  12  13
      14  15  16  17  18  19

where every number is used only once.

it's start with different number in each line(start from 3rd line) ,,
because the rules are:

  1. each line begins from repeated number that not exsist on 2 lines before it..

  2. and the triangle should be build from an odd number of column(1,3,5,7,9...)
    code

                   1
               2  3  4
           5   6   7   8
        9    10  11  12  13
      14  15  16  17  18  19

that triangle is not allowed
cause 3rd line contain 4 numbers,,wich mean it's not an odd number line

relation between each line(i guess..):
example: 4th line begin with 5 and 6,because 5&6 is a new added number on 3rd line that not exist on 2nd line
5th line begin with 7,8,9,10,11 cause 7,8,9,10,11 is new number on 4th line that not exist on 3rd line...and > so on
(but i don't know the relation between 1st and 2nd line)

is it still not make sense to make it,??? i dont know how to create that rules to make the triangle..

Perhaps a hint for ( numNumbersPerLine = 1 ; numNumbersPerLine < 11 ; numNumbersPerLine += 2 )

It is also quite possible that Ancient Dragon edited so it has lost its original meaning.

Nope. I didn't change the actual content of the post, just added code tags around that triangle to retain the spacing.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.