0
#define MAX 50
struct{
int ra;
char nome[MAX];
float prova;
}aluno[5];
int main(){
struct aluno;
int i;
int j;
printf("Determine o Nome do Aluno %d: ", i+1);
printf("Determine a Matricula do Aluno &d: ", i+1);
for(i=0;i<5;i++){
fgets(aluno[i].nome,MAX,stdin);
scanf("%i", &aluno[i].ra);
for(j=0;j<3;j++){
printf("Determine a nota da %d Prova: ", j+1);
scanf("%f", &aluno[i].prova[j]);
}
}
return 0;
}
Your code has 24 lines. How is it wrong in 47?
– Victor Stafusa