...

/

Challenge 2: Make a Calculator

Challenge 2: Make a Calculator

In this exercise, you are required to implement a calculator by using match statements.

Problem Statement

Write a code which will take:

  • Two variables named a and b

  • a character type variable called operator which will take operators (+,-,/,*,%) will be passed as input to our match statement

  • Use match ...

svg viewer