int NumOfCourses = 0;
int i = 0;
int total = 0;
int main()
{
printf("How many courses");
scanf_s("%d", NumOfCourses);
for (i = 0; i < NumOfCourses; i++)
{
total += i;
}
int Courses[i][3];
It will not let me use i as a value for the rows of my array because it is not a constant.