#include <iostream>
using namespace std;
void add(int &x,int &y,int &sum){
sum = x + y;
}
int main() {
int x = 3, y = 7,sum;
add(x,y,sum);
cout << sum << endl;
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: