#include<stdio.h>
{
int s,d,j,rata,ket[20];
printf("Ujian ke-1 = ");
scanf("%d",&s);
printf("Ujian ke-2 = ");
scanf("%d",&d);
rata=s+d;
j=rata/2;
printf("Nilai rata-rata = %d \n",j);
if(rata>=60)
printf("Keterangan = Lulus");
else
printf("Keterangan = Tidak Lulus");
return 0;
}
0 komentar:
Posting Komentar