C program to display Fibonacci series

#include<stdio.h>
void main(){
//declaring integer type variables
int limit, i, first=0, second=1, next=0;
 
//displaying message to enter the limit
printf("Enter the limit: ");
 
//storing the limit into a variable
scanf("%d",&limit);
 
//for-loop to display the Fibonacci series
for(i=0; i<limit; i++){
    if(i<1){
        next = i;
    } else {
        first = second;
        second = next;
        next = first + second;
    }
    //displaying the Fibonacci series
    printf("%d, ",next);
}
 
}