Skip to content

bwarre471/fizzbuzz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

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")
}

About

A fizzbuzz without modulus

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published