منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب
محتاج مساعدة - نسخة قابلة للطباعة

+- منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب (http://vb4arb.com/vb)
+-- قسم : قسم لغة السي شارب C#.NET (http://vb4arb.com/vb/forumdisplay.php?fid=175)
+--- قسم : قسم اسئلة C#.NET (http://vb4arb.com/vb/forumdisplay.php?fid=176)
+--- الموضوع : محتاج مساعدة (/showthread.php?tid=38594)



محتاج مساعدة - غيث - 07-06-21

Using C# language Implement the following:

Read any length of secret Key from console .
Convert the secret Key to byte array K[].
Create S[] are set equal to the values from 0 through 255 in ascending order; that is; S[0] = 0, S[1] = 1,..., S[255] = 255.
Create T[] A temporary byte array.
Implement the code For
For i = 0 to 256

do

S[i] = i;

T[i] = K[i mod keylen];

Write the output T[] to Console.