How can i program a calculator in c++
Answers
Answered by
0
Answer:
Example: Simple Calculator using switch statement
- # include <iostream>
- {
- char op;
- float num1, num2;
- cout << "Enter operator either + or - or * or /: ";
- cin >> op;
- cout << "Enter two operands: ";
- cin >> num1 >> num2;
Similar questions
Math,
7 months ago
Math,
1 year ago
Physics,
1 year ago
Math,
1 year ago
Computer Science,
1 year ago