C program to print Fibonacci Series Certain range

#include<stdio.h>
int main()
{
	int i, number, a=0, b=1, nextTerm=0;
	printf("Enter positive End Number: ");
	scanf("%d",&number);

	while(nextTerm <= number)
	{
		printf("%d ", nextTerm);

		a=b;
		b=nextTerm;
		nextTerm=a+b;
	}

	return 0;
}

Output

Enter positive End Number: 45
0 1 1 2 3 5 8 13 21 34