Its not giving me the proper output. Please help. What is wrong here ?

#include <iostream>

using namespace std;

int addnumber(int ,int );
int subsnumber(int , int );
int multiply(int , int );
int division(int , int );

int main()
{
int a,b,c;
cout<<"Enter two numbers : ";
cin>>a>>b;
cout<<"Enter \n1. Addition \n2. Substraction \n3.Multiply \n4.Division";
cin>>c;
if(c=='1')
cout<<"The result is : "<<addnumber(a,b);
else if (c=='2')
cout<<"The result is : "<<subsnumber(a,b);
else if (c=='3')
cout<<"The result is : "<<multiply(a,b);
else if (c=='4')
cout<<"The result is : "<<division(a,b);
else
cout<<"Error";

}
int addnumber(int x,int y)
{
return x+y;
}
int subsnumber(int q, int w)
{
return q-w;
}
int multiply(int e, int r)
{
return e*r;
}
int division(int t, int u)
{
return t/u;
}
c is of type int so

 
if (c== 1)


and the same for the other if statements.
Topic archived. No new replies allowed.