Int a=15 int b= cout<<a_b<<endl; | SoloLearn: Learn to code for FREE!


Int a=15 int b= cout<<a_b<<endl;

help pls

1/25/2018 5:18:52 PM

Gaby Hotomanul

5 Answers

New Answer


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.


Since I used all of the shortcuts in C++, I wouldn't have known that. You got it backwards b=a


@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;


thank you