Boo (programming language): Difference between revisions

Content deleted Content added
Rescuing 1 sources and tagging 0 as dead.) #IABot (v2.0
m Task 70: Update syntaxhighlight tags - remove use of deprecated <source> tags
Line 30:
 
=== Hello world program ===
<sourcesyntaxhighlight lang="boo">
print "Hello World!"
</syntaxhighlight>
</source>
 
=== Fibonacci series generator function ===
 
<sourcesyntaxhighlight lang="boo">
def fib():
a, b = 0L, 1L # The 'L's make the numbers double word length (typically 64 bits)
Line 46:
for index as int, element in zip(range(5), fib()):
print("${index+1}: ${element}")
</syntaxhighlight>
</source>
 
== See also ==