i am trying to avg scores but i keep getting errors, can someone please help me.
#include "stdafx.h"
#include <iostream>
using namespace std;
const int SIZE =3;
int main()
{
int sum=0;
int tests[SIZE]={0};
float average;
char terminate;
cout<<" Enter test1:";
cin>> tests[0];
cout<<"Enter test2:";
cin>> tests[1];
cout<<" Enter test3:";
cin>> tests[2];
sum = tests[0]+ tests[1]+ tests[2];
cout<< tests[0];
average= (test1 + test2 + test3)/3;
cout<< "The average is" <<average <<endl;
cout<<" Enter any character to terminate:";
cin>> terminate;
return 0;
}