Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Opgave_4_14_4
- {
- class Program
- {
- //Opgave 4-1 til 4-4
- static void Main(string[] args)
- {
- Console.SetCursorPosition(20, 20);
- Console.Write("┌");
- for (int i = 20 + 1; i < 20 + 20; i++)
- {
- Console.SetCursorPosition(i, 20);
- Console.Write("─");
- Console.SetCursorPosition(i, 20 + 20);
- Console.Write("─");
- }
- Console.SetCursorPosition(20, 40);
- Console.Write("└");
- Console.SetCursorPosition(40, 20);
- Console.Write("┐");
- for (int i = 20 + 1; i < 20 + 20; i++)
- {
- Console.SetCursorPosition(20, i);
- Console.Write("│");
- Console.SetCursorPosition(20 + 20, i);
- Console.Write("│");
- }
- Console.SetCursorPosition(40, 40);
- Console.Write("┘");
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement