Sunday, April 13, 2014

Kode Program :

void genap(int a)
{
    if(a%2==0)
        printf("%d adalah bilangan genap",a);
    else
        printf("%d adalah bilangan ganjil",a);
}

void main()
{
    int a;
    printf("Masukkan bilangan bulat : "); scanf("%d",&a);
    genap(a);


    printf("\n\nDibuat oleh Yozi Alhafiz");
    getch();
}

Hasil :


13 Apr 2014

1 comments:

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.

About Me

My photo
give something memorable

Statistik

104,970