DEV/BUT1/DEV1.1/Conditions/billevesees.c

32 lines
344 B
C
Raw Normal View History

2024-02-01 13:55:03 +01:00
#include <stdlib.h>
#include <stdio.h>
int main(void)
{
int 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 EXIT_SUCCESS;
}