C
cliff
Hi, I want to list out numbers from 1to 25 in groups of 3 on fullfiling
certain conditions :_
for eg.,
I want to list all possible combinations of 3 numbers from 1 to 20 with
a difference no1. and no.2 should be 5 and difference no.2 and no.3 is 8 .
My output should be something like this :-
1 6 14
2 7 15
3 8 16
4 9 17
5 10 18
6 11 19
7 12 20
please help me out
thanks
cliffs
certain conditions :_
for eg.,
I want to list all possible combinations of 3 numbers from 1 to 20 with
a difference no1. and no.2 should be 5 and difference no.2 and no.3 is 8 .
My output should be something like this :-
1 6 14
2 7 15
3 8 16
4 9 17
5 10 18
6 11 19
7 12 20
please help me out
thanks
cliffs