Coding Challenge: Minimalistic Calculator

Learn how to create a minimalistic calculator that can perform basic arithmetic operations.

Problem Statement

Write a program that takes in two numbers 6 and 3 and perform the following operations on them:

  • Addition
  • Subtraction
  • Multiplication
  • Division

Expected Output

It should display following result:

9

3

18

2

Get hands-on with 1200+ tech skills courses.