Senin, 31 Desember 2012
Program Memunculkan Nilai Huruf
#include <stdio.h>
#include <conio.h>
void main()
{
int a;
printf("PROGRAM MEMUNCULKAN NILAI HURUF.\n");
printf("--------------------------------\n");
printf("Masukkan Bilangan : ");
scanf("%i", &a);
if(a >= 80 && a <= 100)
printf("A");
else
{if(a >= 60 && a <= 80)
printf("B");
else
{if (a >= 50 && a <= 60)
printf("C");
else
{if (a >= 40 && a <= 50)
printf("D");
else
printf("E"); }}}
getch();
}
Langganan:
Posting Komentar (Atom)
0 komentar:
Posting Komentar