Question: # include using namespace std; void addUp (int&, int&, int&); int main() { int i=3, j=4, sum=2; addUp(i, j, sum); cout <

# include

using namespace std;

void addUp (int&, int&, int&);

int main()

{

int i=3, j=4, sum=2;

addUp(i, j, sum);

cout<<"The sum of "<< i << " and " << j << " is

<< sum << "." << endl;

return 0;

}

void addUp (int &a, int &b, int &c)

{

a=a*a;

b=b*b;

c=a+b;

}

Output:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!