Computer Science, asked by yadhu3004, 1 year ago

How can i program a calculator in c++

Answers

Answered by Zisha7
0

Answer:

Example: Simple Calculator using switch statement

  1. # include <iostream>
  2. {
  3. char op;
  4. float num1, num2;
  5. cout << "Enter operator either + or - or * or /: ";
  6. cin >> op;
  7. cout << "Enter two operands: ";
  8. cin >> num1 >> num2;
Similar questions