Facebook
From shubhamguptaaa, 1 Year ago, written in Python.
This paste is a reply to Re: first from shubh - view diff
Embed
Download Paste or View Raw
Hits: 278
  1. n=int(input("enter the numger"))
  2. n1,n2=0,1
  3. count=0
  4. if n<=0:
  5.     print("please enter the positive number")
  6. elif n==1:
  7.     print(n1)
  8. else:
  9.     print("the fibonacci seroes is")
  10.     while count<n:
  11.         print(n1)
  12.         nth=n1+n2
  13.         n1=n2
  14.         n2=nth
  15.         count += 1
  16.  

Replies to Re: Re: first rss

Title Name Language When
Re: Re: Re: first shubh python 1 Year ago.