Skip to content

Latest commit

 

History

History
30 lines (28 loc) · 481 Bytes

README.md

File metadata and controls

30 lines (28 loc) · 481 Bytes

FizzBuzz

A FizzBuzz without modulus.

If you have some FizzBuzz solution, feel free to add it here.

let i = 1
let k = 1
let t = 1
while(i<=100) {
    let display = true
    if(k==3) {
        process.stdout.write("Fizz")
        display = false
        k = 0
    }
    if(t==5) {
        process.stdout.write("Buzz")
        display = false
        t = 0
    }
    if(display) {
        process.stdout.write(i)
    }
    i++
    k++
    t++
    process.stdout("\n")
}