Skip to content

Instantly share code, notes, and snippets.

@ryu1-1uyr
Created November 26, 2018 06:55
Show Gist options
  • Save ryu1-1uyr/a7adb50513fda4be23b715f7c0efa494 to your computer and use it in GitHub Desktop.
Save ryu1-1uyr/a7adb50513fda4be23b715f7c0efa494 to your computer and use it in GitHub Desktop.
typescriptと触れ合う
for (let i :number = 0;i<31;i++){
if (i % 15 == 0) {
console.log("fizz buzz")
} else if (i % 5 == 0) {
console.log("buzz")
} else if (i % 3 == 0) {
console.log("fizz")
} else {
console.log(i)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment