Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Threading;
- using System.Threading.Tasks;
- namespace Martenitsa
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Напиши от коя част на България си, за бонус: (на английски)");
- Console.WriteLine("Hint - must be North-Western, if you want!");
- string whereFrom = Console.ReadLine();
- Parallel.Invoke
- (() => GreetProgrammers(whereFrom),
- () => PlaySong());
- if (whereFrom == "North-Western")
- {
- Console.WriteLine();
- Console.ForegroundColor = ConsoleColor.White;
- Console.WriteLine("Пустиняк!");
- Console.WriteLine("Copy link for fun: http://www.youtube.com/watch?v=BBrAu5dAhWo");
- Console.ForegroundColor = ConsoleColor.Black;
- }
- }
- private static void GreetProgrammers(string whereFrom)
- {
- string greeting = "Честита Баба Марта!";
- Console.ForegroundColor = ConsoleColor.Red;
- for (int i = 0; i < 60; i++)
- {
- Console.Write("#");
- Thread.Sleep(95);
- }
- Console.WriteLine();
- Console.ForegroundColor = ConsoleColor.White;
- for (int i = 0; i < 60; i++)
- {
- Console.Write("#");
- Thread.Sleep(95);
- }
- Console.WriteLine();
- Console.WriteLine();
- Console.WriteLine();
- Console.WriteLine();
- Console.ForegroundColor = ConsoleColor.Red;
- Console.Write(new string(' ', 20));
- for (int i = 0; i < greeting.Length; i++)
- {
- Console.Write(greeting[i]);
- Thread.Sleep(95);
- }
- Console.WriteLine();
- Console.WriteLine();
- Console.WriteLine();
- Console.WriteLine();
- }
- public static void PlaySong()
- {
- Console.Beep(658, 125);
- Console.Beep(1320, 500);
- Console.Beep(990, 250);
- Console.Beep(1056, 250);
- Console.Beep(1188, 250);
- Console.Beep(1320, 125);
- Console.Beep(1188, 125);
- Console.Beep(1056, 250);
- Console.Beep(990, 250);
- Console.Beep(880, 500);
- Console.Beep(880, 250);
- Console.Beep(1056, 250);
- Console.Beep(1320, 500);
- Console.Beep(1188, 250);
- Console.Beep(1056, 250);
- Console.Beep(990, 750);
- Console.Beep(1056, 250);
- Console.Beep(1188, 500);
- Console.Beep(1320, 500);
- Console.Beep(1056, 500);
- Console.Beep(880, 500);
- Console.Beep(880, 500);
- Thread.Sleep(250);
- Console.Beep(1188, 500);
- Console.Beep(1408, 250);
- Console.Beep(1760, 500);
- Console.Beep(1584, 250);
- Console.Beep(1408, 250);
- Console.Beep(1320, 750);
- Console.Beep(1056, 250);
- Console.Beep(1320, 500);
- Console.Beep(1188, 250);
- Console.Beep(1056, 250);
- Console.Beep(990, 500);
- Console.Beep(990, 250);
- Console.Beep(1056, 250);
- Console.Beep(1188, 500);
- Console.Beep(1320, 500);
- Console.Beep(1056, 500);
- Console.Beep(880, 500);
- Console.Beep(880, 500);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment