MCPcopy Create free account
hub / github.com/Apress/beginning-cpp20 / product

Function product

Examples/Modules/Chapter 19/Ex19_01/Ex19_01.cpp:20–20  ·  view source on GitHub ↗

Function to multiply two values

Source from the content-addressed store, hash-verified

18
19// Function to multiply two values
20long product(long a, long b) { return a * b; }
21
22// Function to add two values
23long sum(long a, long b) { return a + b; }

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected