Ok so I have do a code in C++. The pattern appears to start off by adding one, then count by twos and go back to counting by one. Then count by 4s, back to one and then multiply by 2. What exactly is the pattern?

* 1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10 11
2 2 4 6 8 10 12 14 16 18 20
3 4 5 6 7 8 9 10 11 12 13
4 4 8 12 16 20 24 28 32 36 40
5 6 7 8 9 10 11 12 13 14 15
6 6 12 18 24 30 36 42 48 54 60

and continue this pattern for 14 more rows. & can have no more than 4 output statements

All that I can see is that in an odd numbered line its adding 1 and in even numbered line the multiples of that even number are printed...
Any more inputs ...???

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.