DEV_BUT1/DEV1.1/TP03/billevesees.c

23 lines
622 B
C

#include <stdio.h>
#include <stdlib.h>
int main(void) {
int x=3;
if (x=2)
printf("%s", "x vaut 2\n");
else
printf("%s", "x est different de 2\n");
printf("%d", x);
printf("%c", '\n');
if (x=0)
printf("%s", "x vaut 0\n");
else
printf("%s", "x est different de 0\n");
printf("%d", x);
printf("%c", '\n');
return EXIT_SUCCESS;
}