15 lines
275 B
Plaintext
Raw Normal View History

2024-07-25 13:47:19 +00:00
main() {
2024-07-28 16:47:13 +00:00
assert 0 << 0 == 0
assert 0 >> 0 == 0
assert 1 << 0 == 1
assert 1 >> 0 == 1
assert 1 >> 1 == 0
assert 1 << 1 == 2
assert 1 << 2 == 4
assert 1 << 3 == 8
assert 1 << 4 == 16
assert 16 >> 1 == 8
assert 16 >> 2 == 4
assert 16 >> 3 == 2
assert 16 >> 4 == 1
2024-07-25 13:47:19 +00:00
}