#include <iostream> using namespace std; // Function that uses pass by value int CalcArea(int length, int width) { return length * width; }; int main(void) { int area; // Create variable area = CalcArea(2, 2); // Pass by value cout << "area = " << area << endl; // Display area return 0; }