
Write a program that reads two integers and an operator from the command line, then prints the computed result.
./calc 7 + 5 | cat -e12$./calc 100 / 4 | cat -e25$./calc 17 % 5 | cat -e2$./calc | cat -ewrong number of arguments$calc.catoiprintfwrite
Run the tests to grade your code
Write a program that reads two integers and an operator from the command line, then prints the computed result.
./calc 7 + 5 | cat -e12$./calc 100 / 4 | cat -e25$./calc 17 % 5 | cat -e2$./calc | cat -ewrong number of arguments$calc.catoiprintfwrite
Run the tests to grade your code
Memory will appear here