Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
16
Task/General-FizzBuzz/AutoHotkey/general-fizzbuzz.ahk
Normal file
16
Task/General-FizzBuzz/AutoHotkey/general-fizzbuzz.ahk
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
; Test parameters
|
||||
max := 20, fizz := 3, buzz := 5, baxx := 7
|
||||
|
||||
Loop % max {
|
||||
output := ""
|
||||
if (Mod(A_Index, fizz) = 0)
|
||||
output .= "Fizz"
|
||||
if (Mod(A_Index, buzz) = 0)
|
||||
output .= "Buzz"
|
||||
if (Mod(A_Index, baxx) = 0)
|
||||
output .= "Baxx"
|
||||
if (output = "")
|
||||
FileAppend %A_Index%`n, *
|
||||
else
|
||||
FileAppend %output%`n, *
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue