Implemented numbers with different bases

This commit is contained in:
2024-07-29 00:30:26 +02:00
parent f1d4e65c1b
commit d5953649d9
11 changed files with 165 additions and 12 deletions

View File

@ -0,0 +1,22 @@
main() {
quotient := 0
remainder := 0
dividend := 256
divisor := 100
quotient, remainder = 256 / 100
assert quotient == 2
assert remainder == 56
quotient, remainder = dividend / 100
assert quotient == 2
assert remainder == 56
quotient, remainder = 256 / divisor
assert quotient == 2
assert remainder == 56
quotient, remainder = dividend / divisor
assert quotient == 2
assert remainder == 56
}