a class of 20 students. The information of each student contains ID, Name, Sex,exam Scores (3 quizzes per semester), mid-term score, final score, and total score
#include<stdio.h>
include<conio.h>
void main()
{
struct student
{
int id;
char name[20];
char sex;
int mid;
int final;
int total=mid+final
};
int i
struct student b [19];
for(i=0;i<20;i++);
{
printf("student %d enter your details\n\n",i+1);
printf("enter your id");
scanf("%d",&b.id);
printf("enter your name\n");
fflush(stdin);
scanf("%s",&b.name);
printf("enter your sex\n");
fflush(stdin);
scanf("%c",&b.sex");
printf("enter mid term score and final");
fflush(stdin);
scanf("%d%d",&b.mid,&b.final);
}
for(i=0;i<20;i++)
{
print("%d%s%c",b.id,b.name,b.sex);
}
getch();
}
where am i wrong