Posted by : Agus Nugraha Tuesday, 14 November 2017


#include <stdio.h>
#include <conio.h>
#include <windows.h>

main(){
system("color b1");
int n,hasil;
printf("\t\tPerhitungan Nilai Ganjil Genap\n");
printf("Masukan Nilainya = ");scanf("%d",&n);
hasil=n%2;
printf("Sisa Pembagiannnya Adalah = %d \n",hasil);
if(hasil==0){
printf("Jadi Nilai Tersebut Adalah GENAP");
}else{
printf("Jadi Nilai Tersebut Adalah Ganjil");
}
getch();
}

Leave a Reply

Subscribe to Posts | Subscribe to Comments

- Copyright © Algoritma Dan Pemerograman - Blogger Templates - Powered by Blogger - Designed by Johanes Djogan -