Objective
Objective
🔹 Title
🔹 Objective
---
Compiler: g++, Turbo C++, or any C++ IDE (Code::Blocks, Dev C++, etc.)
---
🔹 Theory
---
🔹 Procedure
---
🔹 Source Code
#include <iostream>
int main() {
char op;
switch(op) {
case '+':
break;
case '-':
case '*':
break;
case '/':
if(num2 != 0)
else
break;
default:
return 0;
---
🔹 Sample Output
Result: 8
---
🔹 Conclusion
The C++ calculator program was successfully developed and tested. It can
perform basic arithmetic operations and handles division-by-zero errors.
---
🔹 Viva Questions