Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

5
LINES

< > BotCompany Repo | #1031775 // fizzBuzz

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (2932L) is out of date.

svoid fizzBuzz() {
  printLines(1to(100), n ->
    or2(stringIf("Fizz", divides(n, 3))
      + stringIf("Buzz", divides(n, 5)), str(n)));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 5 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031775
Snippet name: fizzBuzz
Eternal ID of this version: #1031775/2
Text MD5: d6b7f2394b898c204aff8b1257f9c061
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-13 03:34:56
Source code size: 143 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 74 / 134
Version history: 1 change(s)
Referenced in: [show references]