Implemented modulo operation

This commit is contained in:
2024-07-25 12:11:55 +02:00
parent 65cc81032b
commit 60b8ff1308
7 changed files with 75 additions and 0 deletions

View File

@ -0,0 +1,37 @@
import sys
main() {
if 0 % 1 != 0 {
sys.exit(1)
}
if 1 % 1 != 0 {
sys.exit(1)
}
if 2 % 1 != 0 {
sys.exit(1)
}
if 0 % 2 != 0 {
sys.exit(1)
}
if 1 % 2 != 1 {
sys.exit(1)
}
if 2 % 2 != 0 {
sys.exit(1)
}
if 3 % 2 != 1 {
sys.exit(1)
}
if 256 % 10 != 6 {
sys.exit(1)
}
sys.exit(0)
}