Skip to main content
added 97 characters in body
Source Link
Ephi
  • 121
  • 3

Ruby, 4747 35 bytes

f=->(v,a){'*'*((v/=a*70)<9?v+1:10).times{print'*'}} 

Called with f.call(v,a)

Saved 12 bytes thanks to user3334690, now the function implicitly returns the result.

Ruby, 47 bytes

f=->(v,a){((v/=a*70)<9?v+1:10).times{print'*'}} 

Called with f.call(v,a)

Ruby, 47 35 bytes

f=->(v,a){'*'*((v/=a*70)<9?v+1:10)} 

Called with f.call(v,a)

Saved 12 bytes thanks to user3334690, now the function implicitly returns the result.

Source Link
Ephi
  • 121
  • 3

Ruby, 47 bytes

f=->(v,a){((v/=a*70)<9?v+1:10).times{print'*'}} 

Called with f.call(v,a)