Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
|
|
@ -1,9 +1,12 @@
|
|||
Procedure Main()
|
||||
Local n
|
||||
Local cFB
|
||||
For n := 1 to 100
|
||||
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
|
||||
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