Strings Generation
- by sikas
Hi,I would like to know how can I create various string from some given characters eg:
given characters: a, b
I would like to generate the following strings:
aa
ab
ba
bb
What I have thought of is having (for 2 inputs only) two for-loops one inside another, and then loop each to the number of inputs which in this case is 2 and the output strings will be 2*2 = 4 strings and as the number increases the number of output strings will increase by multiplying n*n (n-times)