I just want to enter of 5 students data in structure but this loop is not running.
pls help me out
#include<stdio.h>
#include<conio.h>
#include<string.h>
struct student
{
char name[20];
int age;
float marks;
} a[5];
main()
{
int i;
clrscr();
for(i=0; i<5; i++)
{
printf("Enter the name of student");
gets(a[i].name);
printf("Enter the age & marks of student");
scanf("%d", &a[i].age,&a[i].marks);
printf("Enter the marks of student");
scanf("%f", &a[i].marks);
}
for(i=0; i<5; i++)
{
puts(a[i].name);
printf("%d", a[i].age);
printf("%f", a[i].marks);
}
getch();
}