Challenge 2: Make a Calculator
In this exercise, you are required to implement a calculator by using match statements.
We'll cover the following...
Problem Statement
Write a code which will take:
-
Two variables named
aandb -
a character type variable called
operatorwhich will take operators (+,-,/,*,%) will be passed as input to ourmatchstatement -
Use
match...
Ask