Question:

Can anyone tell me how to make a fibonacci series in qbasic?

by  |  earlier

0 LIKES UnLike

Can anyone tell me how to make a fibonacci series in qbasic?

 Tags:

   Report

1 ANSWERS


  1. I don't know qbasic, but, assuming it's a programming language,

    here is some pseudocode you can work with:

    f1 = 1;

    f2 = 1;

    loop:

    print f1;

    f3 = f1 + f2;

    f1 = f2;

    f2 = f3;

    repeat loop;

    You need some sort of stopping condition.

    It could be f1 < 10000 or something similar

    or stop after a certain number have been generated.

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.