Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
12
Task/Even-or-odd/FutureBasic/even-or-odd.basic
Normal file
12
Task/Even-or-odd/FutureBasic/even-or-odd.basic
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
local fn OddOrEven( i as NSInteger ) as CFStringRef
|
||||
CFStringRef result
|
||||
if ( i mod 2 ) == 0 then result = @"Even" else result = @"Odd"
|
||||
end fn = result
|
||||
|
||||
NSUInteger i
|
||||
|
||||
for i = 1 to 10
|
||||
printf @"%d is %@", i, fn OddOrEven( i )
|
||||
next
|
||||
|
||||
HandleEvents
|
||||
Loading…
Add table
Add a link
Reference in a new issue