Advertisement
SvetoslavUzunov

Untitled

Apr 9th, 2021
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.46 KB | None | 0 0
  1. using System;
  2.                    
  3. public class Program
  4. {
  5.     static void Main(){
  6.        var n=4;
  7.        
  8.        for(var row=0;row<n*2+2;row++){
  9.           if(row==0){
  10.           Console.Write(new string('-',n*2-1));
  11.           Console.Write(new string("/|\"));
  12.           Console.WriteLine(new string('-',n*2-1));
  13.           }else if(row==1){
  14.               Console.Write(new string('-',n*2-1));
  15.           Console.Write(new string("\|/"));
  16.           Console.WriteLine(new string('-',n*2-1));
  17.           }
  18.        }
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement