#Program to print fibonacci until a range.
print "Fibonacci Series"
print "Enter a range"
range = raw_input()
first=1
second =1
print first
print ", "
print second
print ", "
third = 0
while(third < range):
third=first+second
print third
print ", "
first = second
second = third
#End of program
Here, the program asks user for a range and prints the series upto the range. But, m getting the series of infinite loop. Can anyone help me?