Write a statement to add the values of x and y together, storing the result in sum.

Write a statement to add the values of x and y together, storing the result in sum.

LANGUAGE: C++

CHALLENGE:

Write a statement to add the values of x and y together, storing the result in sum. (The variables have already been declared and x and y have already been initialized .)

SOLUTION:

sum = x + y;

Add comment