+ 1
Please any one can help me this is true. But the run the program output has shown in error. And correct program.
5 Answers
0
Also you can't do ℅ and ^ with floats.
num1 and num2 should be int for below operations.
case '%':
cout << num1%num2;
break;
case '^':
cout << num1^num2;
break;
0
Op is of char type and you are checking for string case check... case 'sqrt':
0
You need to add brackets into below line
cout << num1 ^ num2;
Like
cout << (num1 ^ num2);
Because operator Precedence of operator << is higher than ^.
0
How to use the string operation in sqrt function