Post History
Lua, 126 118 bytes p=print for i=1,100 do if i%15==0 then p"FizzBuzz"elseif i%3==0 then p"Fizz"elseif i%5==0 then p"Buzz"else p(i)end end Try it online!
Answer
#3: Post edited
# [Lua], 126 bytes- <!-- language-all: lang-lua -->
for i=1,100 do if i%15==0 then print"FizzBuzz"elseif i%3==0 then print"Fizz"elseif i%5==0 then print"Buzz"else print(i)end end[Try it online!][TIO-kt6p3mxc]I'm glad it's easier to deal with whitespace in Lua.- [Lua]: https://www.lua.org/
[TIO-kt6p3mxc]: https://tio.run/##yylN/P8/Lb9IIdPWUMfQwEAhJV8hM00hU9XQ1NbWQKEkIzVPoaAoM69EyS2zqsqptKpKKTWnOBWsxBiLCoQsun64XghfI1MzNS9FAYj//wcA "Lua – Try It Online"
- # [Lua], <s>126</s> 118 bytes
- <!-- language-all: lang-lua -->
- p=print for i=1,100 do if i%15==0 then p"FizzBuzz"elseif i%3==0 then p"Fizz"elseif i%5==0 then p"Buzz"else p(i)end end
- [Try it online!][TIO-ku6fxkuv]
- [Lua]: https://www.lua.org/
- [TIO-ku6fxkuv]: https://tio.run/##yylN/P@/wLagKDOvRCEtv0gh09ZQx9DAQCElXyEzTSFT1dDU1tZAoSQjNU@hQMkts6rKqbSqSik1pzgVLG2MJouQQdYH16NQoJGpmZqXogDE//8DAA "Lua – Try It Online"
#2: Post edited
- # [Lua], 126 bytes
- <!-- language-all: lang-lua -->
- for i=1,100 do if i%15==0 then print"FizzBuzz"elseif i%3==0 then print"Fizz"elseif i%5==0 then print"Buzz"else print(i)end end
- [Try it online!][TIO-kt6p3mxc]
- [Lua]: https://www.lua.org/
- [TIO-kt6p3mxc]: https://tio.run/##yylN/P8/Lb9IIdPWUMfQwEAhJV8hM00hU9XQ1NbWQKEkIzVPoaAoM69EyS2zqsqptKpKKTWnOBWsxBiLCoQsun64XghfI1MzNS9FAYj//wcA "Lua – Try It Online"
- # [Lua], 126 bytes
- <!-- language-all: lang-lua -->
- for i=1,100 do if i%15==0 then print"FizzBuzz"elseif i%3==0 then print"Fizz"elseif i%5==0 then print"Buzz"else print(i)end end
- [Try it online!][TIO-kt6p3mxc]
- I'm glad it's easier to deal with whitespace in Lua.
- [Lua]: https://www.lua.org/
- [TIO-kt6p3mxc]: https://tio.run/##yylN/P8/Lb9IIdPWUMfQwEAhJV8hM00hU9XQ1NbWQKEkIzVPoaAoM69EyS2zqsqptKpKKTWnOBWsxBiLCoQsun64XghfI1MzNS9FAYj//wcA "Lua – Try It Online"
#1: Initial revision
# [Lua], 126 bytes <!-- language-all: lang-lua --> for i=1,100 do if i%15==0 then print"FizzBuzz"elseif i%3==0 then print"Fizz"elseif i%5==0 then print"Buzz"else print(i)end end [Try it online!][TIO-kt6p3mxc] [Lua]: https://www.lua.org/ [TIO-kt6p3mxc]: https://tio.run/##yylN/P8/Lb9IIdPWUMfQwEAhJV8hM00hU9XQ1NbWQKEkIzVPoaAoM69EyS2zqsqptKpKKTWnOBWsxBiLCoQsun64XghfI1MzNS9FAYj//wcA "Lua – Try It Online"