#include<iostream.h>
int x,y;
int sum(int a,int b)
{
int c;
c = a+b;
return (c);
}
Int sub (int a ,int b)
{
int c;
c = a-b ;
return (c);
}
int multi ( int a, int b )
{
int c ;
c = a*b;
return (c);
}
float div ( int a , int b)
{
float c;
c = a/b ;
return (c);
}
main()
{
cout<<"enter the value of x = ";
cin>>x;
cout<<"enter the value of y = ";
cin>>y;
cout<<"x + y = "<< sum(x,y);
cout<<"\nx - y = "<< sub(x,y);
cout<<"\nx * y = "<< multi(x,y);
cout<<"\nx /y = "<< div (x,y);
cin>>"\n";
}
Turbo C++ is showing declaration syntax error ? i can't find the error :(
and How do I use switch case in this code ?