Closed shehlayesha closed 2 years ago
First term is Initialized to 0. Second term is initialized to 1. Third term= first + second. The number of terms is accepted by user as input. A while loop is used to print Fibonacci series up to given terms.
First term is Initialized to 0. Second term is initialized to 1. Third term= first + second. The number of terms is accepted by user as input. A while loop is used to print Fibonacci series up to given terms.