Escolar Documentos
Profissional Documentos
Cultura Documentos
h>
#include<conio.h>
main()
{
int pg, tmg, mg, tfg, fg, cs1, cs2, cs3, pe, me, sfe, fe;
clrscr();
printf(“PRELIM\n”);
printf(“CLASS STANDING: “);
scanf(“%d”, &cs1);
printf(“\nPRELIM EXAM: “);
scanf(“%d”, &pe);
pg=(cs1*2+pe)/3;
printf(“\n”);
printf(“PRELIM GRADE: %d”, pg);
printf(“\n”);
printf(“\n”);
printf(“MIDTERM”);
printf(“CLASS STANDING: “);
scanf(“%d”, &cs2);
printf(“\nMIDTERM EXAM: “);
scanf(“%d”, &me);
tmg=(cs2*2+me)/3;
mg=(tmg*2+pg)/3;
printf(“\n\n”);
printf(“SEMI-FINAL AND FINALS”);
printf(“\n”);
printf(“CLASS STANDING: “);
scanf(“%d”, &cs3);
printf(“\nSEMI-FINAL EXAM: “);
scanf(“%d”, &sfe);
printf(“\nFINAL EXAM: “);
scanf(“%d”, &fe);
tfg=(cs3+sfe+fe)/3;
fg=(tfg*2+mg)/3;