class Program static void Main string args Console ForegroundColor Con

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
class Program
{
static void Main(string[] args)
{
Console.ForegroundColor = ConsoleColor.Green;
string stroka = @"def searchUsers(userList):
firstLetter_usersNotFound = []
usersNotFound = []
for user in users:
if len(user) == 0:
continue
f, i, o = user.split(""t"")
if len(o.strip("" "")) == 0:
userShort = f.lower().rstrip() + "" "" + i[0].lower() + "".""
if userShort not in jpg_files:
firstLetter_usersNotFound.append(f[0])
usersNotFound.append("" "".join([""\t"", f, i]))
else:
userShort = f.lower().rstrip() + "" "" + i[0].lower() + ""."" + o[0].lower() + "".""
if userShort not in jpg_files:
firstLetter_usersNotFound.append(f[0])
usersNotFound.append("" "".join([""\t"", f, i, o]))
return (usersNotFound, firstLetter_usersNotFound)";
Random rnd = new Random();
while (true)
{
int i = 0;
while (i < stroka.Length)
{
int rand_value = rnd.Next(2, 4);
if (i >= stroka.Length - 4)
{
rand_value = stroka.Length - i;
}
Console.Write(stroka.Substring(i, rand_value));
Console.ReadKey(true);
i += rand_value;
}
}
}
}