CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <iostream>
#include <math.h>
using namespace std;
int main() {
float b=0;
float c;
char a[5];
cout<<"Enter the value of A:\n";
cin>>b;
cout<<"Enter a sign = axle: + - √ ÷ x ×\n";
cin>>a;
cout<<"Enter the B value:\n";
cin>>c;
if(a[0]=='+')
cout<<b+c;
else if(a[0]=='-')
cout<<b-c;
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run