#include <iostream>
using namespace std;
void add(int a ,int b);
void sub(int a, int b);
void mul(int a, int b);
int main() {
int x, y;
cout <<"Enter the two values "<<endl;
cin>>x>>y;
cout <<"x="<<x<<"\t y="<<y<<endl;
add(x, y);
sub(x,y);
mul(x,y);
return 0;
}
void add(int a ,int b)
{
cout <<"Add result ="<<a+b<<endl;
}
void sub (int a, int b)
{
cout <<"Sub result ="<<a-b<<endl;
}
void mul(int a, int b)
{
cout <<"multiplication result ="<<a*b<<endl;
}
To embed this program on your website, copy the following code and paste it into your website's HTML: