Saving data into an array.

I have this code below I want to save them into an array.


char testScoreGrade(double totalAvg)
{
if (totalAvg >=90)
return 'A';
else
if ( totalAvg >=80 )
return 'B';
else
if ( totalAvg>=70 )

return 'C';
else
if ( totalAvg >=60 )
return 'D';
else
return 'F';
}


How would I write the code for that?
Topic archived. No new replies allowed.