__zero__

lol

Nov 20th, 2018
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.94 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Learning {
  4.  
  5.     class Program {
  6.         // Arrow method.
  7.         // START HERE
  8.         static void Arrow(int L, String Text) {
  9.             for (int i=0; i < L; i++) {
  10.                 Console.Write("-");
  11.                 // wait time...
  12.                 System.Threading.Thread.Sleep(200);
  13.             }
  14.             Console.Write(">");
  15.  
  16.             System.Threading.Thread.Sleep(200);
  17.  
  18.             Console.WriteLine("");
  19.  
  20.             Console.WriteLine(Text);
  21.  
  22.             Console.Write("<");
  23.             for (int i = 0; i < L; i++) {
  24.                 Console.Write("-");
  25.                 // wait time...
  26.                 System.Threading.Thread.Sleep(200);
  27.             }
  28.         } // ENDS HERE
  29.  
  30.         public static void Main(String[] args) {
  31.             Console.BackgroundColor = ConsoleColor.Cyan;
  32.             Console.ForegroundColor = ConsoleColor.White;
  33.  
  34.             Arrow(10, "Welcome");
  35.         }
  36.     }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment