0% found this document useful (0 votes)
15 views3 pages

Student Grade

Uploaded by

RAMSWAMI BANSODE
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views3 pages

Student Grade

Uploaded by

RAMSWAMI BANSODE
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

//Student Grade Management:

#include<stdio.h>
int main () {
int grade;
float phy,chem,math,eng,comp,total,per;
printf("Enter your Course Subject Marks: \n ");
printf("Physics: ");
scanf("%f", &phy);
printf("Chemistry: ");
scanf("%f", &chem);
printf("Math's: ");
scanf("%f", &math);
printf("English: ");
scanf("%f", &eng);
printf("Computer: ");
scanf("%f", &comp);

total = (phy + chem + math + eng + comp);


per = (total / 500) * 100;
printf("\nTotal Marks : %f\n", total);
printf("Percentage : %f\n", per);
printf("\n");
if(per<=100 && per>=95)
{
printf("Your Rank: Extra Ordinary!\n");
}
else if(per<95 && per>=80)
{
printf("Your Rank: Distinction!\n");
}
else if(per<80 && per>=65)
{
printf("Your Rank: First Division!\n");
}
else if(per<65 && per>=55)
{
printf("Your Rank: Second Division!\n");
}
else if(per<65 && per>=55)
{
printf("Your Rank: Second Division!\n");
}
else if(per<55 && per>=40)
{
printf("Your Rank: Third Division!\n");
}
else
{
printf("Your Rank: Fail\n");
}
return 0;
}

You might also like