#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int nilai,uts,uas;
printf("input nilai uts: ");
scanf("%d",&uts);
printf("input nilai uas: ");
scanf("%d",&uas);
nilai = (uts+uas)/2;
if (nilai>50)
printf("anda lulus ");
else
printf("anda gagal ");
getch();
}
Tidak ada komentar:
Posting Komentar