acm-mjct / Utilities

8 stars 86 forks source link

WhileFibonacci.js #272

Closed shehlayesha closed 2 years ago

shehlayesha commented 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.