13 lines
182 B
Plaintext
Raw Normal View History

2024-07-06 13:06:39 +02:00
main() {
x := 1000
2024-07-28 18:47:13 +02:00
result := div10(x) / 10 + div(x, 100) * 4 - 40 - x + x
assert result == 10
2024-07-06 13:06:39 +02:00
}
2025-02-17 14:31:47 +01:00
div(x int, y int) -> int {
2024-07-06 13:06:39 +02:00
return x / y
}
2025-02-17 14:31:47 +01:00
div10(x int) -> int {
2024-07-06 13:06:39 +02:00
return x / 10
}