I can't seem to locate the problem in my program where it says, "error: expected declaration or statement at the end of input"
I would like to learn more about this mistake
#include<stdio.h>
int main()
{
float Math, English, Science, Fundamentals, per;
printf("Enter GPA of 4 subject\n");
scanf("%f %f %f %f", &Math, &English, &Science, &Fundamentals);
per = (Math + English + Science + Fundamentals) / 4.0;
if(per >= 5)
{
printf("Your GWA is: 75\n");
}
else
{
if(per >= 3)
{
printf("Your GWA is: 75\n");
}
else
{
if(per >= 2)
{
printf("Your GWA is: 85\n");
}
else
{
if(per >= 1)
{
printf("Your GWA is: 100\n");
}
}
}
return 0;
}