# M. Iqbal Suhardimas ( 2018 804 302 ) | Soal No. 3 | Page 4 | UTS

Oct 28th, 2020 (edited)
708
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
1. #include <stdio.h>
2.
3. int main(void) {
4.
5.     int angka;
6.     printf("M. Iqbal Suhardimas ( 2018 804 302 ) | Soal No. 3 | Page 4 | UTS \n=--------------------=\n\n");
7.     printf("Masukkan Nilai anda: ");
8.     scanf("%d",&angka);
9.
10.     if (angka > 80 && angka <= 100) {
11.         printf (" Nilai: %d\n Grade : A \n", angka);
12.     }
13.     else if (angka > 65 && angka <= 80) {
14.         printf (" Nilai: %d\n Grade : B \n", angka);
15.     }
16.     else if (angka > 50 && angka <= 65) {
17.         printf (" Nilai: %d\n Grade : C \n", angka);
18.     }
19.     else if (angka > 40 && angka <= 50) {
20.         printf (" Nilai: %d\n Grade : D \n", angka);
21.     }
22.     else if (angka >= 0 && angka <= 40) {
23.         printf (" Nilai: %d\n Grade : E \n", angka);
24.     }
25.     else {
26.         printf(" Input Salah Tolong masukkan Angka :) \n");
27.     }
28.     printf("UTS No.2 : https://pastebin.com/7Ty9VXeH \n");
29.     printf("UTS No.3 : https://pastebin.com/tvuXgZA8 \n");
30.     printf("Tugas Harian No.4 : https://pastebin.com/q55XucAA \n");
31.     printf("Tugas Harian No.5 : https://pastebin.com/DQTrSek8 \n");
32.     return 0;
33. }
RAW Paste Data