Thursday, 15 December 2011

if-else


#include <stdio.h>
#include<conio.h>
void main()
{
clrscr();
float nilai;
printf("Masukkan Nilai yang didapat=");scanf("%f",&nilai);
if (nilai>65)
{
printf("\n ANDA LULUS !!!!\N");
}
else
{
printf("\n TIDAK LULUS!!!!\n" );
}
getch();
}

No comments:

Post a Comment