Skip to main content
Commonmark migration
Source Link

Lua, 88 86 bytes

##Lua, 88 86 bytes## SavedSaved 2 bytes thanks to @Mauris

I'm sure this can be golfed more, any suggestions are welcome.

for i=1,100 do n=(i%3<1 and"Fizz"or"")..(i%5<1 and"Buzz"or"")print(n~=""and n or i)end

##Lua, 88 86 bytes## Saved 2 bytes thanks to @Mauris

I'm sure this can be golfed more, any suggestions are welcome.

for i=1,100 do n=(i%3<1 and"Fizz"or"")..(i%5<1 and"Buzz"or"")print(n~=""and n or i)end

Lua, 88 86 bytes

Saved 2 bytes thanks to @Mauris

I'm sure this can be golfed more, any suggestions are welcome.

for i=1,100 do n=(i%3<1 and"Fizz"or"")..(i%5<1 and"Buzz"or"")print(n~=""and n or i)end
added 43 characters in body
Source Link
Nico A
  • 2.5k
  • 1
  • 13
  • 26

##Lua, 8888 86 bytes## I'mSaved 2 bytes thanks to @Mauris

I'm sure this can be golfed more, any suggestions are welcome.

for i=1,100 do n=(i%3==0i%3<1 and"Fizz"or"")..(i%5==0i%5<1 and"Buzz"or"")print(n~=""and n or i)end

##Lua, 88 bytes## I'm sure this can be golfed more, any suggestions are welcome.

for i=1,100 do n=(i%3==0 and"Fizz"or"")..(i%5==0 and"Buzz"or"")print(n~=""and n or i)end

##Lua, 88 86 bytes## Saved 2 bytes thanks to @Mauris

I'm sure this can be golfed more, any suggestions are welcome.

for i=1,100 do n=(i%3<1 and"Fizz"or"")..(i%5<1 and"Buzz"or"")print(n~=""and n or i)end
Source Link
Nico A
  • 2.5k
  • 1
  • 13
  • 26

##Lua, 88 bytes## I'm sure this can be golfed more, any suggestions are welcome.

for i=1,100 do n=(i%3==0 and"Fizz"or"")..(i%5==0 and"Buzz"or"")print(n~=""and n or i)end