Syntax error in printf command in c programming
Just for context, I am a complete beginner at programming and learning C is my first experience at coding.
I do not know why I am receiving error in line 12 and line 15 of my program. I probably think it is some syntax error which I do not know about. Could someone point it out to me?
The code which I used is as follows:
#include<stdio.h>
int main()
{
float maths, eng, phy, chem, pe;
printf("
Enter maths marks:");
scanf("%f",&maths);
printf("
Enter eng marks:");
scanf("%f",&eng);
printf("
Enter phy marks:");
scanf("%f",&phy);
printf("
Enter chem marks:");
scanf("%f",&chem);
printf("
Enter pe marks:");
scanf("%f",&pe);
}