Skip to main content
deleted 273 characters in body
Source Link

Add++, 2617 bytes

L^,/70070/10*1+i10m1_Vc"*"Gyi9b<"*"$yp 

Try it online! or see the test suiteTry it online!

It's notNot often I get to use the ^ function flag in a code golf.

How it works

L^,		; Create a lambda that returns the stack joined 		; Example arguments:	[3067 15] 	/	; Divide;		[204.46] 	700	70/	; Divide by 700;	[0.2921] 	10*	; Times by 10;		[270;		[2.91]921] 	1+i	;	i	; Ceiling;		[3]Floor;		[2] 	10m	;	9b>	; Minimum with 10;	[3 10 3] 	1_	; Decrement;		[3 10 2]9;	[2] 	Vc	; Keep	"*"	; thePush top'*';		[2 value;	[2]'*'] 	"*"G	; Push	y	; '*'Repeat below;	['*'with 2] 	y	;an Repeat;		['*'extra;	['*' '*' '*'] 

Add++, 26 bytes

L^,/700/10*1+i10m1_Vc"*"Gy 

Try it online! or see the test suite

It's not often I get to use the ^ function flag in a code golf.

How it works

L^,		; Create a lambda that returns the stack joined 		; Example arguments:	[3067 15] 	/	; Divide;		[204.46] 	700/	; Divide by 700;	[0.2921] 	10*	; Times by 10;		[2.91] 	1+i	; Ceiling;		[3] 	10m	; Minimum with 10;	[3 10 3] 	1_	; Decrement;		[3 10 2] 	Vc	; Keep the top value;	[2] 	"*"G	; Push '*' below;	['*' 2] 	y	; Repeat;		['*' '*' '*'] 

Add++, 17 bytes

L^,/70/i9b<"*"$yp 

Try it online!

Not often I get to use the ^ flag in

How it works

L^,		; Create a lambda that returns the stack joined 		; Example arguments:	[3067 15] 	/	; Divide;		[204.46] 	70/	; Divide by 70;		[2.921] 	i	; Floor;		[2] 	9b>	; Minimum with 9;	[2] 	"*"	; Push '*';		[2 '*'] 	y	; Repeat with an extra;	['*' '*' '*'] 
Source Link

Add++, 26 bytes

L^,/700/10*1+i10m1_Vc"*"Gy 

Try it online! or see the test suite

It's not often I get to use the ^ function flag in a code golf.

How it works

L^,		; Create a lambda that returns the stack joined 		; Example arguments:	[3067 15] 	/	; Divide;		[204.46] 	700/	; Divide by 700;	[0.2921] 	10*	; Times by 10;		[2.91] 	1+i	; Ceiling;		[3] 	10m	; Minimum with 10;	[3 10 3] 	1_	; Decrement;		[3 10 2] 	Vc	; Keep the top value;	[2] 	"*"G	; Push '*' below;	['*' 2] 	y	; Repeat;		['*' '*' '*']