//boy3vil
#include<stdio.h>
int main()
{
int n;
printf("masukkan nilai anda=");
scanf("%d",&n);
printf("========================\n");
printf("struktur penilaian:\t|\n");
printf(" A : 85 keatas\t\t|\n");
printf(" B : 75-84\t\t|\n");
printf(" C : 65-74\t\t|\n");
printf(" D : 55-64\t\t|\n");
printf(" E : 54 Kebawah\t\t|\n");
printf("\t\t\t|\n");
printf("====================================================\n");
if(n=>85){
printf("nilai anda %d dan anda mendapatkan nialai || A ||\n",n);}
else
if(n=>75){
printf("nilai anda %d dan anda mendapatkan nialai || B ||\n",n);}
else
if(n=>65){
printf("nilai anda %d dan anda mendapatkan nialai || C ||\n",n);}
else
if(n=>55){
printf("nilai anda %d dan anda mendapatkan nialai || D ||\n",n);}
else
printf("nilai anda %d dan anda mendapatkan nialai || E ||\n",n);
printf("====================================================\n");
return 0;
}
Categories:
blog,
c program,
pemrograman1