Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# add 2 arrays

public static int[] AddArrays(int[] a, int[] b)
{
    int[] newArray = new int[a.Length];
    for (int i = 0; i<a.Length; i++)
    {
        newArray[i]=a[i]+b[i];
    }
    return newArray;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #arrays
ADD COMMENT
Topic
Name
3+9 =