Surender v

Surender v

  • NA
  • 74
  • 7.8k

For loop in (permutation and combination)

Apr 24 2019 12:27 AM
Hai Friends,
 
       Give me one example  for Permutation and Combination in [For Loop]. or any other loop possible suggest me.
 
In my scenario i need examples like (i have two set of strings have to concatenate) both in single formart.
 
Example :
 
String 1 : 
i. Hello 
ii.Good
iii.Morning
 
String 2:
i.Good
ii.Evening
 
String1 have 3 submodule and string2 have 2 submodule i have to compare and concatenate in single form. 
 
Final String after  (Permutation and Combination)
==> string1: i. Hello,string2: i.Good 
  
like this (1,1)(1,2)
             (2,1)(2,2)
             (3,1)(3,2)
 
Please give me some suggestions friends.
 
Thanks in Advance Friends.

Answers (3)