C program to display Fibonacci series

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
//for-loop to display the Fibonacci series
for(i=0; i<limit; i++){
        next = i;
    } else {
        first = second;
        second = next;
        next = first + second;
    //displaying the Fibonacci series
    printf("%d, ",next);