+ 1

c++

Please type in a code that declares two variables of type int and prints their sum to the screen. int x = 4; y = 7; int sum = x _ y; cout << "sum equals to " << ____<< endl;

24th Feb 2019, 4:59 AM
Amina Perazic
3 Answers
+ 2
int x = 4; int y = 7; int sum = x + y; cout << "sum equals to " << sum << endl
20th Mar 2020, 2:55 AM
Md. jahidul islam
Md. jahidul islam - avatar
0
int x = 4; int y = 7; int sum = x+y; cout << "sum equals to " << sum << endl;
29th Sep 2019, 1:55 PM
Jean de Dieu RUMANZI
Jean de Dieu RUMANZI - avatar