// Our plain vanilla addTwo with a method call to do the sum! // Copyleft: Sathiamoorthy Manoharan. #include int Sum(const int n1, const int n2) { return (n1 + n2); } // Sum int main() { // Send to the output stream the string "enter two ..." std::cout << "enter two numbers: "; int a, b; // Receive from the input stream the integer values 'a' and 'b' std::cin >> a >> b; int x = Sum(a, b); // Send to the output stream a string and the integer sum std::cout << "sum: " << x << "\n"; return 0; }