1. Course
  2. Data types A
  3. Basic calculator

Basic calculator


Last updated: 8/22/2020 Difficulty: Easy

Write a program in C# that calculates the result of adding, subtracting, multiplying and dividing two numbers entered by the user.

In addition you should also calculate the rest of the division on the last line.

Input

12
3

Output

12 + 3 = 15
12 - 3 = 9
12 x 3 = 36
12 / 3 = 4
12 mod 3 = 0

Solution

Data types A

2 / 8

Android App


Practice C# anywhere with the free app for Android devices.

Android App

Exercises C# by difficulty


Learn C# at your own pace, the exercises are ordered by difficulty.

Make a donation


Your donations support our work and contribute to the maintenance of the app.

Advertising