bsc

Comprehensive codebase and coursework for the 4-year B.Sc. Computer Science Honours degree (WBSU)

git clone https://github.com/notamitgamer/bsc.git
· rebuilt hourlyOpen on GitHub
root / semester_2 / python / sec_4.py

sec_4.py (192B)


      1 # Fibonacci Series up to N Terms
      2 n = int(input("Enter the number of terms: "))
      3 a = 0
      4 b = 1
      5 print("Fibonacci Series:")
      6 for i in range(n):
      7     print(a, end=" ")
      8     c = a + b
      9     a = b
     10     b = c