Created
April 8, 2021 12:14
-
-
Save kien9977/92a8ff4f464be064ffcb657590cdfb07 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
int main(int argc, char *argv[]) { | |
float gpa; | |
printf("Nhap vao diem GPA: "); | |
scanf("%f", &gpa); | |
if((gpa >= 0) && (gpa < 2.0)) { | |
printf("Hoc sinh nay loai Yeu"); | |
} | |
else if((gpa >= 2.0) && (gpa < 2.5)) { | |
printf("Hoc sinh nay loai Trung Binh"); | |
} | |
else if((gpa >= 2.5) && (gpa < 3.2)) { | |
printf("Hoc sinh nay loai Kha"); | |
} | |
else if((gpa >= 3.2) && (gpa < 3.6)) { | |
printf("Hoc sinh nay loai Gioi"); | |
} | |
else if((gpa >= 3.6) && (gpa <= 4.0)) { | |
printf("Hoc sinh nay loai Xuat sac"); | |
} | |
else{ | |
printf("Khong biet xep loai"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment