When I run the program, it tells me to enter the gpa, but when I enter the gpa, it does not put you have failed, you have passed.
#include <stdio.h>
int main ()
{
int gpa;
printf("Enter your gpa: ");
scanf("%f",&gpa);
if(gpa>=5.0&&gpa<=3.01){
printf("You have failed.");
}else
if(gpa>=3.0&&gpa<=1.76){
printf("You have passed.");
}else
if(gpa>=1.75&&gpa<=1.51){
printf("You are a Dean lister for this semester!");
}else
if(gpa>=1.50&&gpa<=1.0){
printf("You are a President lister for this semester!");
}