Advertisement
Guest User

StillDre

a guest
Oct 16th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Threading;
  7.  
  8. namespace StillDre_Console.Beep_Method__
  9. {
  10. class Program
  11. {
  12.  
  13. static void Main()
  14. {
  15. int positionCounter = 0;
  16. Console.ForegroundColor = ConsoleColor.DarkGreen;
  17. Console.SetCursorPosition(10, 0);
  18. Console.WriteLine("Still Dre - ENJOY");
  19. while(true)
  20. {
  21. Thread.Sleep(0);
  22. Console.ForegroundColor = ConsoleColor.Cyan;
  23. Console.Beep(880, 250);
  24. Console.WriteLine("A");
  25. Console.Beep(880, 250);
  26. Console.WriteLine("A");
  27. Console.Beep(880, 250);
  28. Console.WriteLine("A");
  29. Console.Beep(880, 250);
  30. Console.WriteLine("A");
  31. Console.Beep(880, 250);
  32. Console.WriteLine("A");
  33. Console.Beep(880, 250);
  34. Console.WriteLine("A");
  35. Console.Beep(880, 250);
  36. Console.WriteLine("A");
  37. Console.Beep(880, 250);
  38. Console.WriteLine("A");
  39. Console.ForegroundColor = ConsoleColor.Red;
  40. Console.Beep(783, 250);
  41. Console.WriteLine("G");
  42. Console.Beep(783, 250);
  43. Console.WriteLine("G");
  44. Console.Beep(783, 250);
  45. Console.WriteLine("G");
  46. Console.Beep(783, 250);
  47. Console.WriteLine("G");
  48. Console.Beep(783, 250);
  49. Console.WriteLine("G");
  50. Console.Beep(783, 250);
  51. Console.WriteLine("G");
  52. Console.Beep(783, 250);
  53. Console.WriteLine("G");
  54. Console.Beep(783, 250);
  55. Console.WriteLine("G");
  56. positionCounter = positionCounter + 16;
  57. Console.ForegroundColor = ConsoleColor.DarkGreen;
  58. Console.SetCursorPosition(10,positionCounter);
  59. Console.WriteLine("Still Dre - ENJOY");
  60. }
  61. }
  62. }
  63. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement