Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/FizzBuzz/Clipper/fizzbuzz.clipper
Normal file
12
Task/FizzBuzz/Clipper/fizzbuzz.clipper
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
PROCEDURE Main()
|
||||
|
||||
LOCAL n
|
||||
LOCAL cFB
|
||||
|
||||
FOR n := 1 TO 100
|
||||
cFB := ""
|
||||
AEval( { { 3, "Fizz" }, { 5, "Buzz" } }, {|x| cFB += iif( ( n % x[ 1 ] ) == 0, x[ 2 ], "" ) } )
|
||||
?? iif( cFB == "", LTrim( Str( n ) ), cFB ) + iif( n == 100, ".", ", " )
|
||||
NEXT
|
||||
|
||||
RETURN
|
||||
Loading…
Add table
Add a link
Reference in a new issue