lean2/tests/lean/arith3.lean
Leonardo de Moura 9f08156a73 feat(frontends/lean/parser): combine Echo and Show commands into the 'print' command
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-05 11:03:35 -08:00

10 lines
No EOL
173 B
Text

Import Int.
Eval 8 mod 3
Eval 8 div 4
Eval 7 div 3
Eval 7 mod 3
print -8 mod 3
SetOption lean::pp::notation false
print -8 mod 3
Eval -8 mod 3
Eval (-8 div 3)*3 + (-8 mod 3)