Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
18
Task/Fibonacci-sequence/BlitzMax/fibonacci-sequence.blitz
Normal file
18
Task/Fibonacci-sequence/BlitzMax/fibonacci-sequence.blitz
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
local a:int = 0, b:int = 1, c:int = 1, n:int
|
||||
|
||||
n = int(input( "Enter n: "))
|
||||
if n = 0 then
|
||||
print 0
|
||||
end
|
||||
else if n = 1
|
||||
print 1
|
||||
end
|
||||
end if
|
||||
|
||||
while n>2
|
||||
a = b
|
||||
b = c
|
||||
c = a + b
|
||||
n = n - 1
|
||||
wend
|
||||
print c
|
||||
Loading…
Add table
Add a link
Reference in a new issue