Hello
I'm using the book C++ Primer 5th edition and in the beginning there is an exercise to change a sum into a prodcut.
#include <iostream>
int main()
{
std::cout << "The sum of " << v1 << " and " <<v2 << " is " << v1 + v2 << std::endl;
return 0;
}
Do i just have to put a * instead of + and prodcut instead of sum? If so it didn't run.
The next exercise: We wrote the output in one large statement. Rewrite the
program to use a separate statement to print each operand.
What do they mean by that exactly?
Regards
Kareem