Computer Science, asked by Mayurigaikwad, 1 month ago

White an algorithm and flowchart to display the grade of a student . Accept percentage from user.

If percentage >=75 , grade = distinction
if 60 <= percentage <75, grade = first class
if 40 <= percentage <60, grade = second class
if percentage <40 grade = fail​

Answers

Answered by arshadshaikh13
0

{

int marks;

printf("Enter your marks ");

scanf("%d",&marks);

if(marks<0 || marks>100)

{ printf("Wrong Entry");

}

else if(marks<50)

{ printf("Grade F");

}

else if(marks>=50 && marks<60)

{ printf("Grade D");

}

else if(marks>=60 && marks<70)

{

printf("Grade C");

}

else if(marks>=70 && marks<80)

{

printf("Grade B");

}

else if(marks>=80 && marks<90)

{

printf("Grade A");

}

else { printf("Grade A+");

}

}

hope it was helpful

if you found it helpful plz brainlist this answer

Similar questions