ProAnswers.org

how to print following pattern in c++ 1 2 3 4 5 5 7 9 11 1313 16 19 22 2525 29 33 37 41

is it linear pattern??? if yes then
you can print it directly using cout. :slight_smile:

no its nt a linera pattern…its
1 2 3 4 5
5 7 9 11 13
13 16 19 22 25
25 59 33 37 41