Developpement/23DEV1.1/TPS1/TP01/02-entier/arith.c

16 lines
341 B
C
Raw Permalink Normal View History

2024-12-09 11:53:11 +01:00
#include <stdio.h>
#include <stdlib.h>
int main(void) {
printf("%d\n", 100/6);
printf("%d\n", 100%6);
printf("%d\n", 0x1A*015);
printf("%d\n", -3/5);
printf("%d\n", -31/5);
printf("%d\n", -31%5);
printf("%d\n", 100*(3/5));
printf("%d\n", 100*3/5);
printf("%d\n", 2-3-5);
printf("%d\n", 2-(3-5));
return EXIT_SUCCESS;
}