answersLogoWhite

0

The following is a schematic program. Details will depend on the language.

n1 = 1

output n1

n2 = 1

output n2

.

start loop

n3 = n1 + n2

output n3

got enough numbers?

if yes go to end else

n1 <- n2 (replace the value of n1 by n2)

n2 <- n3 (replace the value of n2 by n3)

loop back

.

end

User Avatar

Wiki User

12y ago

What else can I help you with?