/* File : relasional.c */
/* Penulis : Izza, email izza.fahlevi@gmail.com */
/* Deskripsi : */
/* Contoh perbandingan nilai numberik */
#include <stdio.h>
int main ()
{
/* KAMUS */
int X = 5;
int Y = 8;
/* PROGRAM */
printf ("Hasil X < Y : %d \n", X < Y);
printf ("Hasil X > Y : %d \n", X > Y);
printf ("Hasil X <= Y : %d \n", X <= Y);
printf ("Hasil X >= Y : %d \n", X >= Y);
printf ("Hasil X == Y : %d \n", X == Y); /* operator kesamaan : == */
printf ("Hasil X != Y : %d \n", X != Y); /* operator ketidaksamaan : != */
printf ("Hasil X == X : %d \n", X == X); /* operator kesamaan : == */
printf ("Hasil X != X : %d \n", X != X); /* operator ketidaksamaan : != */
return 0;
}