View difference between Paste ID: vs7d0Z8G and GmfHBLPj
SHOW: | | - or go back to the newest paste.
1
local function iW(num)
2
    if math.floor(num) == num or math.ceil(num) == num then
3
        return true
4
    else
5
        return false
6
    end
7
end
8
9
local var = 0 
10
for i=1, 100 do
11
    var = var+1
12
    if iW(var/3) and iW(var/5) then
13
        print(var.." fizzbuzz")
14
    elseif iW(var/3) then
15
        print(var.." fizz")
16
    elseif iW(var/5) then
17
        print(var.." buzz")
18
    else
19
        print(var)
20
    end
21
    os.pullEvent()
22
end