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