Skip to main content
Removed 19 bytes thanks to @KevinCruijssen, and used the header better(?)
Source Link
Netråm
  • 281
  • 1
  • 5

C# (Visual C# Interactive Compiler), 217217 154 bytes

Func<int,string>f=n=>String.Joinn=>Join("",Enumerable.Range(0,n).Select(i=>new StringS(' ',n-i+1)+new StringS('/',(n+i-n)*2i*2)+new StringS('_',(n-i)*2+1+*2-~(n/10n+"").Length)+'\n').Concat(Enumerable.Repeat("\\/",n))).Replace("//", "/ ")+" "+n;"+n

Try it online!Try it online!

Edit: Removed 19 bytes thanks to @KevinCruijssen, and used the header better(?)

C# (Visual C# Interactive Compiler), 217 bytes

Func<int,string>f=n=>String.Join("",Enumerable.Range(0,n).Select(i=>new String(' ',n-i+1)+new String('/',(n+i-n)*2)+new String('_',(n-i)*2+1+(n/10))+'\n').Concat(Enumerable.Repeat("\\/",n))).Replace("//", "/ ")+" "+n;

Try it online!

C# (Visual C# Interactive Compiler), 217 154 bytes

n=>Join("",Range(0,n).Select(i=>new S(' ',n-i+1)+new S('/',i*2)+new S('_',(n-i)*2-~(n+"").Length)+'\n').Concat(Repeat("\\/",n))).Replace("//", "/ ")+" "+n

Try it online!

Edit: Removed 19 bytes thanks to @KevinCruijssen, and used the header better(?)

Source Link
Netråm
  • 281
  • 1
  • 5

C# (Visual C# Interactive Compiler), 217 bytes

Func<int,string>f=n=>String.Join("",Enumerable.Range(0,n).Select(i=>new String(' ',n-i+1)+new String('/',(n+i-n)*2)+new String('_',(n-i)*2+1+(n/10))+'\n').Concat(Enumerable.Repeat("\\/",n))).Replace("//", "/ ")+" "+n;

Try it online!