RosettaCodeData/Task/Even-or-odd/FutureBasic/even-or-odd.basic

13 lines
247 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
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