You are on page 1of 1

#include iostream

using namespace std;


void main
{
int a=3;
int b=6;
int c;
b-a=c;
cout<<c<<endl;
cd(c);
switch(op)
{
case '+':
cout << num1+num2;
break;

case '-':
cout << num1-num2;
break;

case '*':
cout << num1*num2;
break;

case '/':
cout << num1/num2;
break;

default:
// If the operator is other than +, -, * or /, error message is shown
cout << "Error! operator is not correct";
break;
}

int cd(int c)
{
c+4;//4 as d

return c;
}

//error:

//invalid call in line

You might also like