Rpg

  • November 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Rpg as PDF for free.

More details

  • Words: 88
  • Pages: 1
#include<stdio.h> #include 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(“\nTMG: %d”, tmg); printf(“\nMIDTERM GRADE: %d”, mg); 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; printf(“\nTFG: %d”, tfg); printf(“\nFINAL GRADE: %d”, fg); getch(); }

Related Documents

Rpg
November 2019 21
Rpg
November 2019 29
Rpg
August 2019 23
Rpg
November 2019 13
Rpg - Ebook - Fbi Rpg
May 2020 25