#include<stdio.h>
#include<conio.h>
main()
{
int a, b, c;
//inisialisasi variabel
a = 2;
b = 8;
printf(" \n Diketahui : \n");
printf(" a > b : %d\n", a > b);
printf(" a < b : %d\n", a < b);
printf(" a == b : %d\n", a == b);
printf(" a != b : %d\n", a != b);
c= a == b;
printf(" c : %d\n", c);
printf(" !c : %d", !c);
getch();
}
Output :
0 komentar:
Posting Komentar