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
a
andb
-
a character type variable called
operator
which will take operators (+
,-
,/
,*
,%
) will be passed as input to ourmatch
statement -
Use
match
...