Skip to content

Instantly share code, notes, and snippets.

@NaokiStark
Created April 20, 2016 12:21
Show Gist options
  • Save NaokiStark/93d9ee7245cc81e403c5542395d7adba to your computer and use it in GitHub Desktop.
Save NaokiStark/93d9ee7245cc81e403c5542395d7adba to your computer and use it in GitHub Desktop.
namespace AcaEstaTuTarea{
static class Program{
static void Main(string[] args){
string[] arr1 = {"1","2"};
string[] arr2 = {"a","b","c","d","e"};
string[] arr3 = new string[arr1.Length * arr2.Length];
int count = 0;
for(int a = 0; a < arr1.Length; a++){
for(int b = 0; b < arr2.Length; b++){
arr3[count] = arr2[b] + arr1[a];
count++;
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment