what's wrong about this?
why when i compile,it come out expected primary-expression?
what is that?
#include<stdio.h>
#include<conio.h>
main()
{
float Lab,Mid,Pro,Quiz,Final,Total;
printf("\nEnter your mark for Lab:");
scanf("%f",&Lab);
printf("\nEnter your mark for Mid Exam:");
scanf("%f",&Mid);
printf("\nEnter your mark for Quiz:");
scanf("%f",&Quiz);
printf("\nEnter your mark for Project:");
scanf("%f",&Pro);
printf("\nEnter your mark for Final Exam:");
scanf("%f",&Final);
Total=(10/100.0)*Lab+(15/100.0)*Mid+(5/100.0)*Quiz+(20/100.0)*Pro+(50/100.0)*Final;
if(Total>=35)
printf("\nyou are passed");
else
printf("\nyou are failed");
if(Total>=80)
{
printf("\nyour is grade A",Total);
printf("\nwell done");
}
else if(Total>=75)
{
printf("\nyour grade is A-,%f",Total);
}
else
{
printf("\nyou don't get A-,%f",Total);
}
else if(Total>=70)
{
printf("\nyour grade is B+,%f",Total);
}
else
{
printf("\nyou don't get B+,%f",Total);
}
else if(Total>=65)
{
printf("\nyour grade is B,%f",Total);
}
else
{
printf("\nyou don't get B,%f",Total);
}
else if(Total>=60)
{
printf("\nyour grade is B-,%f",Total);
}
else
{
printf("\nyou don't get B-,%f",Total);
}
else if(Total>=55)
{
printf("\nyour grade is C+,%f",Total);
}
else
{
printf("\nyou don't get C+,%f",Total);
}
else if(Total>=50)
{
printf("\nyour grade is C,%f",Total);
}
else
{
printf("\nyou don't get C,%f",Total);
}
else if(Total>=45)
{
printf("\nyour grade is C-,%f",Total);
}
else
{
printf("\nyou don't get C-,%f",Total);
}
else if(Total>=40)
{
printf("\nyour grade is D+,%f",Total);
}
else
{
printf("\nyou don't get D+,%f",Total);
}
else if(Total>=35)
{
printf("\nyour grade is D,%f",Total);
}
else
{
printf("\nyou don't get D,%f",Total);
}
getch();
return 0;
}