using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication50
{
class Program
{
static void Main(string[] args)
{
int [] A = new int []{ 2, 6, 3, 8, 7, 34, 21, 5, 47, 20 };
int[] B = new int []{ 33, 56, 3, 45, 24, 31, 7, 9, 12, 37 };
int []sum = new int [10];
for(int i=0;i<10;i++)
{
sum[i] = A[i] + B[i];
Console.Write(sum[i]+" ");
}
Console.Read();
}
}
}
总结: