I sort of understand but I can't quite figure it out.
Somewhat like this...
have to do a for loop for how many times they say
Code:
#include <iostream.h>
#include <stdlib.h>
void main () *might be int main but my thing works with void*
{
int numtest;sumtest *don't know how to use it*
double avg;
cout <<"Enter number of tests"<<endl;
cin >>numtest;
{
for (i=????; i >=1; --)
{
cout <<"Insert score"<<endl;
*Here is where it is supposed to loop ^ how many times they wanted*
{
avg=(score+???????)/numtest
}
}
}
}
cout <<"You have A, B, C, D, or F as grade"<<endl;