/* File : boolOP.c */
/* Penulis : Izza, email izza.fahlevi@gmail.com */
/* Contoh perhitungan aljabar boolean, perhitungan cara penulisan
AND dan OR serta NOT */
#include <stdio.h>
int main ()
{
/* KAMUS */
int TRUE = 1;
int FALSE = 0;
/* ALGORITMA */
printf ("------------- \n");
printf ("Ini nilai TRUE AND TRUE : %d \n", TRUE && TRUE);
printf ("Ini nilai TRUE OR FALSE : %d \n", TRUE || FALSE);
printf ("Ini nilai FALSE AND TRUE : %d \n", FALSE && TRUE);
printf ("Ini nilai FALSE OR FALSE : %d \n", FALSE || FALSE);
printf ("Ini nilai NOT TRUE : %d \n", !TRUE);
printf ("Ini nilai NOT FALSE : %d \n", !FALSE);
return 0;
}