Advertisement
Guest User

fullcodes kerge näide

a guest
Oct 15th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.49 KB | None | 0 0
  1. List<string> fullCodes = new List<string>();
  2.             int fullCodeLength = 11;
  3.             foreach (string beginning in codeBeginnings)
  4.             {
  5.                 int len = beginning.Length;
  6.                 foreach (string end in codeEndings)
  7.                 {
  8.                     int len2 = end.Length;
  9.                     if (len + len2 == fullCodeLength)
  10.                     {
  11.                         fullCodes.Add(beginning+end);
  12.                     }
  13.                 }
  14.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement