Skip to main content
Commonmark migration
Source Link

#VBA, 2 1 -3 20 - 25 = -5 Bytes

VBA, 2 1 -3 20 - 25 = -5 Bytes

?Spc([Max(A1,2)*20])

Which outputs [A1] (analagous to n) else 1 times 22 (length of the code) spaces

###Previous Version 1 Byte

Previous Version 1 Byte

?

Output

 

#VBA, 2 1 -3 20 - 25 = -5 Bytes

?Spc([Max(A1,2)*20])

Which outputs [A1] (analagous to n) else 1 times 22 (length of the code) spaces

###Previous Version 1 Byte

?

Output

 

VBA, 2 1 -3 20 - 25 = -5 Bytes

?Spc([Max(A1,2)*20])

Which outputs [A1] (analagous to n) else 1 times 22 (length of the code) spaces

Previous Version 1 Byte

?

Output

 
deleted 2 characters in body
Source Link
Taylor Raine
  • 8.8k
  • 2
  • 28
  • 51

#VBA, 27 - 25 = 22 1 -3 2220 - 25 = -35 Bytes

?SpaceSpc([Max(A1,2)*22]*20])

Which outputs [A1] (analagous to n) else 1 times 22 (length of the code) spaces

###Previous Version 1 Byte

?

Output

 

#VBA, 27 - 25 = 2 1 22 - 25 = -3 Bytes

?Space([Max(A1,2)*22])

Which outputs [A1] (analagous to n) else 1 times 22 (length of the code) spaces

###Previous Version 1 Byte

?

Output

 

#VBA, 2 1 -3 20 - 25 = -5 Bytes

?Spc([Max(A1,2)*20])

Which outputs [A1] (analagous to n) else 1 times 22 (length of the code) spaces

###Previous Version 1 Byte

?

Output

 
added 26 characters in body
Source Link
Taylor Raine
  • 8.8k
  • 2
  • 28
  • 51

#VBA, 1 Byte

An anonymous VBE immediate window function

?

which outputs

 

(a single non-breaking space followed by a newline)

##Alternative Solution, 27 - 25 = 2 1 22 - 25 = -3 Bytes

  
?Space([Max(A1,12)*22])

Which outputs [A1] (analagous to n) else 1 times 22 (length of the code) spaces

###Previous Version 1 Byte

?

Output

 

#VBA, 1 Byte

An anonymous VBE immediate window function

?

which outputs

 

(a single non-breaking space followed by a newline)

##Alternative Solution, 27 - 25 = 2 22 - 25 = -3 Bytes

 
?Space([Max(A1,1)*22])

Which outputs [A1] (analagous to n) else 1 times 22 (length of the code) spaces

#VBA, 27 - 25 = 2 1 22 - 25 = -3 Bytes

 
?Space([Max(A1,2)*22])

Which outputs [A1] (analagous to n) else 1 times 22 (length of the code) spaces

###Previous Version 1 Byte

?

Output

 
added 26 characters in body
Source Link
Taylor Raine
  • 8.8k
  • 2
  • 28
  • 51
Loading
added 179 characters in body
Source Link
Taylor Raine
  • 8.8k
  • 2
  • 28
  • 51
Loading
Source Link
Taylor Raine
  • 8.8k
  • 2
  • 28
  • 51
Loading