Is it better programming practice to
1) output the value of an expression a * b in a cout statement as a variable containing its value
orCode:total = a * b; cout << total << endl;
2) is printing value of the expression as calculated directly from the cout statement preferred?
I searched around, but couldn't find any specific information regarding this. I've seen both in code.Code:cout << a * b;
Thank you for your time!