6
Answers

print three lists <> using foreach

kiki

kiki

16y
5.6k
1
I have 3 lists like

List<string> A=new List<string>();
List<string> B=new List<string>();
List<string> C=new List<string>();


How can I print the contents of the lists like this:

first item of list A
first item of list B
first item of list C
second item of list A
second item of list B
second item of list C
third
item of list A
third item of list B
third item of list C
....




Answers (6)