i got an if statement that will display the letter A and the percent grade if there percent grade is between 90 and 100. and the else statement will do the same but its display a B if the grade is between 80 and 90, my problem is, even if the grade percentage comes out as a 50%, it only displays the first IF statement and says the person who got a 50% got a A which def. is not right so idk what im doing wrong with this code
total=totalPoints/eightfiftytotal*100;
// display the grade letter and grade percentage
printf("Grade || Percentage\n\n");
if((int) total > 90 || total < 100) {
printf("%c %d percent\n ", gradeLetter1, (int) total);
}
else if ((int) total > 80 || total < 89) {
printf("%c", gradeLetter2, (int) total);
}