New course! Every coder should learn Generative AI!
Try a free lesson+ 1
Ok.
cout << "sum="
This part outputs
sum=
Then <<sum <<endl;
outputs
the variable sum. So now we have
sum=(sum)
<<endl; this part makes sure that you continue into the next line.