How to output this on a table and also output if the subject is credited or not based on the input on the program

void input_grades(void)
{
clrscr();
string subj[8]={"CHN11","ESN111","EN111", "ESN110","FI101","MAN 111","PEN 1","MAN 112"};
for(int x=0; x<=8; x++)
{
gotoxy(26,8);
cout<<"Enter your grades for:"<<subj[x]<<"\n";
gotoxy(26,12);
cin>>grades;
if(grades<3)
{
gotoxy(26,11);
cout<<"CREDITED"<<"\n";
gotoxy(26,12);
system("pause");
clrscr();
}
else
{
gotoxy(26,11);
cout<<"FAILED"<<"\n";
gotoxy(26,12);
system("pause");
clrscr();

}

Last edited on
Topic archived. No new replies allowed.