Syntaxᶰᵘˡˡ
Linton
United Kingdom (Great Britain)
private static int frequency = 10000;
private static int duration = 100;
Console.WriteLine("Use keyboard arrows to adjust frequency and duration");
do
{
while (!Console.KeyAvailable)
{
Console.Beep(frequency, duration);
}

var key = Console.ReadKey(true);

switch (key.Key)
{
case ConsoleKey.UpArrow:
frequency += 100;
frequency = Math.Min(frequency, 15000);
break;
case ConsoleKey.DownArrow:
frequency -= 100;
frequency = Math.Max(frequency, 1000);
break;
case ConsoleKey.RightArrow:
duration += 100;
duration = Math.Min(duration, 1000);
break;
case ConsoleKey.LeftArrow:
duration -= 100;
duration = Math.Max(duration, 100);
break;
}
} while (true);
private static int frequency = 10000;
private static int duration = 100;
Console.WriteLine("Use keyboard arrows to adjust frequency and duration");
do
{
while (!Console.KeyAvailable)
{
Console.Beep(frequency, duration);
}

var key = Console.ReadKey(true);

switch (key.Key)
{
case ConsoleKey.UpArrow:
frequency += 100;
frequency = Math.Min(frequency, 15000);
break;
case ConsoleKey.DownArrow:
frequency -= 100;
frequency = Math.Max(frequency, 1000);
break;
case ConsoleKey.RightArrow:
duration += 100;
duration = Math.Min(duration, 1000);
break;
case ConsoleKey.LeftArrow:
duration -= 100;
duration = Math.Max(duration, 100);
break;
}
} while (true);
Не в сети
Витрина иллюстраций
Middle Placeholder
Любимая игра
6,8
Часов сыграно
4
Достижений
Витрина редчайших достижений
Витрина скриншотов
This was so funny.
Недавняя активность
14,3 ч. всего
последний запуск 7 июл
92 ч. всего
последний запуск 15 июн
Достижения   130 из 149
29 ч. всего
последний запуск 14 июн
Комментарии
paull 18 ноя. 2018 г. в 5:21 
......... . . . . .,'´`. ,'``;
. . . . . . . . . .,`. . .`—–'..
. . . . . . . . . .,. . . . . .~ .`- .
. . . . . . . . . ,'. . . . . . . .o. .o_
. . . . . . . . _l. . . . . . . . . . . .
. . . . . . . _. '`~-.. . . . . . . . . .,'
. . . . . . .,. .,.-~-.' -.,. . . ..'–~`
. . . . . . /. ./. . . . .}. .` -..,/
. . . . . /. ,'___. . :/. . . . . .
. . . . /'`-.l. . . `'-..'........ . .
. . . ;. . . . . . . . . . . . .)-.....l
. . .l. . . . .' —........-'. . . ,'
. . .',. . ,....... . . . . . . . . .,'
. . . .' ,/. . . . `,. . . . . . . ,'_____________
. . . . .. . . . . .. . . .,.- '______________|_')
. . . . . ',. . . . . ',-~'`. (.))
. . . . . .l. . . . . ;. . . /__
. . . . . /. . . . . /__. . .
76561198452277239 25 фев. 2018 г. в 3:50 
stop copya me! toucha my spaghet!
76561198452277239 12 янв. 2018 г. в 9:57 
copy ♥♥♥♥♥♥♥ cat nonce sTOP IT
76561198452277239 17 дек. 2017 г. в 4:13 
stop copying my steam profile:steamfacepalm::steamsad:
MNS 31 авг. 2017 г. в 14:05 
-rep 3 psycho 5 me
mmm monkey 31 авг. 2017 г. в 14:04 
-rep ♥♥♥♥ at csgo