Sorry for the noob question but i still dont understand the benefits of a
function that does something but returns nothing.
Whats the point?
Code:void echoSquare() { int value; cout << “Enter a value:”; cin >> value; cout << “\n The square is:” << (value * value) << “\n”; return; }




Reply With Quote