SHARE
TWEET

Untitled

a guest Apr 24th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Opgave_4_14_4
  8. {
  9.     class Program
  10.     {
  11.         //Opgave 4-1 til 4-4
  12.         static void Main(string[] args)
  13.         {
  14.             Console.SetCursorPosition(20, 20);
  15.             Console.Write("┌");
  16.             for (int i = 20 + 1; i < 20 + 20; i++)
  17.             {
  18.                 Console.SetCursorPosition(i, 20);
  19.                 Console.Write("─");
  20.                 Console.SetCursorPosition(i, 20 + 20);
  21.                 Console.Write("─");
  22.             }
  23.             Console.SetCursorPosition(20, 40);
  24.             Console.Write("└");
  25.             Console.SetCursorPosition(40, 20);
  26.             Console.Write("┐");
  27.             for (int i = 20 + 1; i < 20 + 20; i++)
  28.             {
  29.                 Console.SetCursorPosition(20, i);
  30.                 Console.Write("│");
  31.                 Console.SetCursorPosition(20 + 20, i);
  32.                 Console.Write("│");
  33.             }
  34.             Console.SetCursorPosition(40, 40);
  35.             Console.Write("┘");
  36.             Console.ReadKey();
  37.         }
  38.     }
  39. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top