if the answer is 90 through 100 it displays an A if the number is between 80 and 89 it will Display a B, but if its any number less then that it wont work. what am i missing?
if((int) total >= 90 && total <= 100) {
printf("%c \n ", gradeLetter1 );
}
else if((int) total >= 80 && total <= 89) {
printf("%c \n", gradeLetter2);
}
else if((int) total >= 70 && total <= 79) {
printf("c% \n", gradeLetter3);
}
else if((int) total >= 60 && total <= 69) {
printf("c% \n", gradeLetter4);
}
else if((int) total <= 59) {
printf("You have Failed with a %d percent \n");
}
return 0;