Files
alecc/examples/tests/modulo_comprehensive.c
2025-08-23 13:50:26 +02:00

11 líneas
239 B
C

#include <stdio.h>
int main() {
printf("Testing modulo operator:\n");
printf("10 %% 3 = %d\n", 10 % 3);
printf("15 %% 4 = %d\n", 15 % 4);
printf("8 %% 2 = %d\n", 8 % 2);
printf("9 %% 2 = %d\n", 9 % 2);
return 0;
}