APL/APL1.1/TP04/comparaisons.c

15 lines
332 B
C

#include <stdio.h>
#include <stdlib.h>
int main(void) {
int a = 7;
int b = 4;
printf("%d > %d : %d\n", a, b, a > b);
printf("%d < %d : %d\n", a, b, a < b);
printf("%d >= %d : %d\n", a, b, a >= b);
printf("%d <= %d : %d\n", a, b, a <= b);
printf("%d == %d : %d\n", a, b, a == b);
printf("%d != %d : %d\n", a, b, a != b);
}