I think you can do in the following way:
do i=1 to 5;
put i;
do j=1 to 5;
if j=i then continue;
else put j;
do k=1 to 5;
if k in (i j) then continue;
else put k;
do l=1 to 5;
if l in (i j k) then
continue;
else put l;
do m=1 to 5;
if l in (i j k l) then continue;
else put l;
end;
end;
end;
end;
end;
Hope from the above program you will get some idea.
kamalakar jadhav <kamlakar.jadhav@...> wrote:
kamalakar jadhav <kamlakar.jadhav@...> wrote:
Dear all
I need a help for writting a program for all possible combination for permutation
e.g. if n=5 then then 5! combination of no 1 to 5
how to genetate this all possible combination ........
Thanks in advance .
Thanks & Ragards,
Kamalakar
Want to look great? Get expert opinion on beauty and skin care. Ask the expert!
--------------
Madan Gopal Kundu
Biostatistician I, i3 Statprobe
Biostatistician I, i3 Statprobe
Gurgaon, Haryana
India
mobile: 91-9868788406
e-mail: Madan.Kundu@...

Click to join Statisticians_group
Download prohibited? No problem. CHAT from any browser, without download.