Hello guys,

I want to know what my Visual .net compiler is skipping the process of the input of the book title after the first loop.





#include <stdio.h>


struct books
{
char titel[50];
char auther[50];
float price;
int isbn;
} book_info[5];


int main()
{
int i;
for (i=0; i<5; i++)
{


printf("title: ");
gets(book_info[i].titel);
putchar('\n');

printf("auther: ");
gets(book_info[i].auther);
putchar('\n');

printf("price: ");
scanf("%f", &book_info[i].price);
putchar('\n');

printf("ISBN: ");
scanf("%d", &book_info[i].isbn);
putchar('\n');


}


for (i=0; i<5; i++)
{
puts(book_info[i].titel);
puts(book_info[i].auther);
printf(" Price is %.3f and ISBN is %d", book_info[i].price , book_info[i].isbn);
}


return 0;


}

the problem at the red line.

at the first loop everything gose well but the second loop the program dose not ask for the value of book_info[i].title but instead is asks
for the book_info[i].aurther



i'm not a begginer in programming but i'm in C and i can't find what is the problem


any help