Objective
Write a program that reads two integers and an operator from the command line, then prints the computed result.
Steps
$ ./calc 7 + 5 | cat -e
12$
$ ./calc 100 / 4 | cat -e
25$
$ ./calc 17 % 5 | cat -e
2$
$ ./calc | cat -e
wrong number of arguments$
Expected files
Allowed functions

Objective
Write a program that reads two integers and an operator from the command line, then prints the computed result.
Steps
$ ./calc 7 + 5 | cat -e
12$
$ ./calc 100 / 4 | cat -e
25$
$ ./calc 17 % 5 | cat -e
2$
$ ./calc | cat -e
wrong number of arguments$
Expected files
Allowed functions

Tests
Run the tests to grade your code