Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
def main():
count = int(raw_input("How many numbers do you want to print?"))
if count == 0:
print "No Numbers Printed"
else:
a = 0
b = 1
print a,
if count > 1:
print b,
while count > 2:
c = a + b
print c,
a = b
b = c
count -= 1
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.