You are on page 1of 1

Lab # 2

Write a C++ program to create a simple calculator to add, subtract, multiply and divide

using if else if.

Output

Enter operator either + or - or * or divide: -

Enter two operands:

3.4

8.4

3.4 - 8.4 = -5.0

You might also like