[Error] expected declaration or statement at end of inputCode:void statistics (void) { int i,success=0; float stat=0; for (i=0;i<150;i++) { if (AM[i].final_grade>=5) success+=1; } stat=(success/150)*100; printf ("The overall number of students examined is 150, %f % were successful, which means that %d students were successful\n",stat,success); main; }
This problem occurs when I try to run that part of the program.
What should I do??