Another update from ingydotnet^djgoku
This commit is contained in:
parent
91df62d461
commit
948b86eafa
7604 changed files with 108452 additions and 22726 deletions
8
Task/Even-or-odd/AppleScript/even-or-odd.applescript
Normal file
8
Task/Even-or-odd/AppleScript/even-or-odd.applescript
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
set nList to {3, 2, 1, 0, -1, -2, -3}
|
||||
repeat with n in nList
|
||||
if (n / 2) = n / 2 as integer then
|
||||
log "Value " & n & " is even."
|
||||
else
|
||||
log "Value " & n & " is odd."
|
||||
end if
|
||||
end repeat
|
||||
Loading…
Add table
Add a link
Reference in a new issue