© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
22 replies
Mysel

❔ Foreach on two different lists

Hey i would like to know how to do a foreach loop for these two different lists where it can print out "aBook" and "aAuthor" in the same line, something like
Console.WriteLine(aBook + " by " aAuthor)
Console.WriteLine(aBook + " by " aAuthor)
thank you in advance!
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

how to join two lists?
C#CC# / help
3y ago
✅ how do i join two lists?
C#CC# / help
2y ago
❔ Foreach
C#CC# / help
3y ago
❔ Using two lists, compare, and render based on smaller list [Answered]
C#CC# / help
4y ago