Algoritma :
Deklarasi
n : integer
i : integer
a[1..50]: integer
Deskripsi
Read n
For i <- 0 to n do
If (i < 2) then
a[ i ] <- i
Else
a[ i ] <- a[ i - 2 ] + a[ i - 1 ]
end if
end for
For i <- 0 to n do
Write a[ i ]
end for
end