CAP/MiniC/TP04/tests/students/base/test_mod.c
2024-10-21 23:10:10 +02:00

20 lines
228 B
C

#include "printlib.h"
int main() {
int x, y;
x = 5;
y = 3;
println_int(x%y);
println_int((-x)%y);
y = 0;
println_int(x%y);
return 0;
}
// SKIP TEST EXPECTED
// EXECCODE 1
// EXPECTED
// 2
// -2
// Division by 0