#include
int bil(int a)
{
if (a%2==0)
return 1;
else return 0;
}
main(){
int a,hasil;
printf("Masukkan Bilangan Bulat :");scanf("%d",&a);
hasil=bil(a);
printf("%d\n",hasil);
if(hasil==1)
printf("Bilangan Genap");
else printf("Bilangan Ganjil");
}
Copyright © ◀▬ ♥ Szi Chipi ♥▬▶
Template by Blog Template 4 U | Blogspot Tutorial | Blogger
Comments :
0 komentar to “Fungsi "Bilangan Genap dan Ganjil"”
Posting Komentar