Free help with homework

Why join Brainly?

  • ask questions about your assignment
  • get answers with explanations
  • find similar questions


/*c program for read 5 subject marks and calculate percentage & division of student*/
/*we assume total marks is 500*/
int main()
 float m1,m2,m3,m4,m5,avg,per; //m=marks
 printf("Enter 5 subject marks: ");
 scanf("%f %f %f %f %f",&m1,&m2,&m3,&m4,&m5);
 per = (m1+m2+m3+m4+m5)*100/500;
 printf("Student get %0.2f percentage. \n",per);
   printf("1st Division");
 else if(per>=50 && per<=59)
   printf("2nd Division");
 else if(per>=40 && per<=49)
   printf("3rd Division");
 else if(per<40)
 return 0;
0 0 0
The Brain
  • The Brain
  • Helper
Not sure about the answer?
Learn more with Brainly!
Having trouble with your homework?
Get free help!
  • 80% of questions are answered in under 10 minutes
  • Answers come with explanations, so that you can learn
  • Answer quality is ensured by our experts