Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Learning {
- class Program {
- // Arrow method.
- // START HERE
- static void Arrow(int L, String Text) {
- for (int i=0; i < L; i++) {
- Console.Write("-");
- // wait time...
- System.Threading.Thread.Sleep(200);
- }
- Console.Write(">");
- System.Threading.Thread.Sleep(200);
- Console.WriteLine("");
- Console.WriteLine(Text);
- Console.Write("<");
- for (int i = 0; i < L; i++) {
- Console.Write("-");
- // wait time...
- System.Threading.Thread.Sleep(200);
- }
- } // ENDS HERE
- public static void Main(String[] args) {
- Console.BackgroundColor = ConsoleColor.Cyan;
- Console.ForegroundColor = ConsoleColor.White;
- Arrow(10, "Welcome");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment