28 lines
245 B
Plaintext
Raw Normal View History

2025-02-27 15:30:44 +01:00
main() {
total := 0
for 0..10 {
total += 1
}
assert total == 10
for 0..total {
total -= 1
}
2025-02-27 19:45:18 +01:00
assert total == 0
2025-02-27 15:30:44 +01:00
for i := 0..10 {
assert i >= 0
assert i < 10
}
2025-02-28 19:37:06 +01:00
ten := 10
for 0..ten {
total += 1
}
assert total == ten
2025-02-27 15:30:44 +01:00
}