using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
List<string> numbers = new List<string> { "1", "2", "3", "4", "5" };
List<string> chars = new List<string> { "A", "B", "C", "D", "E" };
for (int indexNumber = 0; indexNumber < numbers.Count; indexNumber++)
{
for (int indexChar = 0; indexChar < chars.Count; indexChar++)
{
if (indexNumber == indexChar)
{
Console.WriteLine(numbers[indexNumber] + chars[indexChar]);
}
}
}
Console.ReadLine();// OutPut 1A 2B 3C 4D 5E
}
}
}
No comments:
Post a Comment