Home
Press ? for keyboard navigation
❮
Exercise: Calculator STDIN
Exercise: Age limit
❯
Exercise: Calculator ARGV
Create a file called
calculator_argv.cr
that the user can run with two numbers and an operator
(+, -, *, /)
.
crystal calculator_argv.cr 3 + 7
Compute the result of the operation and print it out.
Index (i)
Table of Contents (t)
Indexed keywords (k)
Chapter TOC (d)
Hide/Show (h)