Hello, hum... I posted it in the wrong forum... so posting it here now...
Here is the deal: I must do a program that read a name, and 3 notes (rating ? Score ? =p) and made a average note of these 3...] And if you writes END ("fim" in this case) it should stop...
The first name apparently goes ok... after that it goes wrong =o
int main ()
SOMA = 0;
CONTA = 0;
printf ("\nDigite o nome:");
CONTA = CONTA++;
if (!strcmp(NOME[CONTN], "fim"))
printf ("\nNota %d:",CONTY);
SOMA = SOMA+NOTA[CONTN][CONTY];
MEDIA = SOMA/3;
NOTA[CONTN] = MEDIA;
printf ("Nome, Media");
printf ("\n%s %.2f",NOME[CONTN],NOTA[CONTN]);
BTW: I'm just testing with 3 names first...
BTW²: I'm using portugues words.. (Nome = Name) (Media = Average)
Anyone have any ideia that can help-me ? =p What is wrong ?