Advertisement
Guest User

Untitled

a guest
Oct 17th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 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 datetimezkouska
  9. {
  10. class DateTimeZkouska
  11. {
  12. static void Draw()
  13. {
  14. int width = Console.WindowWidth;
  15. string line_top_bot = new string('*', width);
  16. Console.Write(line_top_bot);
  17. string line_middle = new string(' ', width - 2);
  18. int a = 0;
  19. while (a < 4)
  20. {
  21. a++;
  22. Console.Write("*{0}*", line_middle);
  23. }
  24. Console.WriteLine(line_top_bot);
  25. }
  26. static void Main(string[] args)
  27. {
  28. for (; ; )
  29. {
  30. int b = 0;
  31. while(b < 1)
  32. {
  33. Console.Clear();
  34. Draw();
  35. Thread.Sleep(1000);
  36. }
  37. }
  38. }
  39. }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement