functionAdd.cpp - function example#include <iostream> using...

This preview shows page 1 out of 1 page.

// function example #include <iostream> using namespace std; int functionAdd (int x, int y) { int sum; sum = x + y; return sum; } int main () { int result; result = functionAdd (3,5); cout << "\nThe result is " << result;

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture