×
×
Correct!
Fill in the missing parts to print the sum of two numbers (which is put in by the user):
int x, y;
int sum;
cout << "Type a number: ";
@(3) >> @(1);
cout << "Type another number: ";
@(3) >> @(1);
sum = x + y;
cout << "Sum is: " << @(3);
int x, y;
int sum;
cout << "Type a number: ";
cin >> x;
cout << "Type another number: ";
cin >> y;
sum = x + y;
cout << "Sum is: " << sum;
Not CorrectClick here to try again. Correct! |
This will reset the score of ALL 58 exercises.
Are you sure you want to continue?