make your problem statement clear. your program is not running cause you dint use if-else-if properly. if you use else-if then there should be a condition to check. if there is no condition then you can use if-else. i.e. your program will run if you change
if (test3 >= 90)
{
printf("Good job you got a A %d\n", average);
}
else if
{
printf("Easy Beezy you got a B %d for the class\n", average);
}
}
else if (average >= 50 && average <= 70)
{
if (test2_test3Av >= 70)
{
printf("You passed congrats you have a C %d for the class\n", average);
}
else if
{
printf("You have a D for the class %d\n", average);
}
this code part to
if (test3 >= 90)
{
printf("Good job you got a A %d\n", average);
}
else
{
printf("Easy Beezy you got a B %d for the class\n", average);
}
}
else if (average >= 50 && average <= 70)
{
if (test2_test3Av >= 70)
{
printf("You passed congrats you have a C %d for the class\n", average);
}
else
{
printf("You have a D for the class %d\n", average);
}
}
but logic you need to check. error in coding is this