DEV/DEV1.1/TP03:Conditions/billevesees.c

18 lines
355 B
C
Raw Normal View History

2022-09-21 17:54:28 +02:00
#include <stdio.h>
int main(void) {
int x;
x=3;
if (x==2) {
printf("x vaut 2\n");}
else {
printf("x est different de 2\n");}
printf("%d\n", x);
if (x==0) {
printf("x vaut 0\n");}
else {
printf("x est different de 0\n");}
printf("%d\n", x);
return 0;
}