Advertisement
Guest User

Untitled

a guest
Dec 13th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.77 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.  
  7. namespace ConsoleApp9
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             var n = int.Parse(Console.ReadLine());
  14.             var koloni = n * 3;
  15.             var redove = 2 * n + 8;
  16.  
  17.             //1-va chast
  18.  
  19.             Console.WriteLine("{0}{1}{2}", new string('.', n + 1), new string('x', 1), new string('.', n + 1));
  20.             Console.WriteLine("{0}{1}{2}{3}{4}", new string('.', n), new string('/', 1), new string('x', 1), new string('\\', 1), new string('.', n));
  21.             Console.WriteLine("{0}{1}{2}{3}{4}", new string('.', n), new string('x', 1), new string('|', 1), new string('x', 1), new string('.', n));
  22.  
  23.             //2 Row
  24.             for (int i = 0; i <= n; i++)
  25.             {
  26.  
  27.             }
  28.  
  29.             //middlerow
  30.             Console.WriteLine("{0}{1}{2}{3}{4}", new string('.', n), new string('/', 1), new string('x', 1), new string('\\', 1), new string('.', n));
  31.             Console.WriteLine("{0}{1}{2}{3}{4}", new string('.', n), new string('\\', 1), new string('x', 1), new string('/', 1), new string('.', n));
  32.  
  33.             //4 Row (Like 2 Row)
  34.             for (int i= n = 0; i= n <= n; i= n++)
  35.             {
  36.  
  37.             }
  38.  
  39.             //posledna chast
  40.             Console.WriteLine("{0}{1}{2}{3}{4}", new string('.', n), new string('x', 1), new string('|', 1), new string('x', 1), new string('.', n));
  41.             Console.WriteLine("{0}{1}{2}{3}{4}", new string('.', n), new string('/', 1), new string('x', 1), new string('\\', 1), new string('.', n));
  42.             Console.WriteLine("{0}{1}{2}", new string('.', n + 1), new string('x', 1), new string('.', n + 1));
  43.         }
  44.     }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement