- 1
Int a=15 int b= cout<<a_b<<endl;
help pls
7 Answers
+ 6
Interesting code. What is a_b? Missing ; after 15. I assume Int is due to autocorrect and was coded as int. Please link actual code to question. It is hard to help this way.
+ 2
Since I used all of the shortcuts in C++, I wouldn't have known that. You got it backwards b=a
+ 2
thank you
+ 1
@John Wells This is actually a question from the first chapter in the C++ course from Sololearn, not really a code.
@Gaby You have to assign the value of a to b, so
int b = a;
And if you want to print their sum, as stated in the exercise,
cout << a + b << endl;
0
0
how to do thĂ int a = 15;
int b =
;
cout << a
b << endl;
0
int a = 15; int b = ; cout << a + b << endl;
How do I complete the solution?