MCPcopy Create free account
hub / github.com/Rustam-Z/cpp-programming / sales_sum

Function sales_sum

Lab_09/Source2.cpp:36–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36void sales_sum(int a[3][5])
37{
38 int sum = 0;
39 for (int row = 0; row < 3; row++)
40 {
41 for (int col = 0; col < 5; col++)
42 {
43 sum += a[row][col]; // adding all arrays
44 }
45 cout << "The Total sales of Product " << row + 1 << " is " << sum << endl;
46 sum = 0; // reset the sum
47 }
48}
49
50int main()
51{

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected