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

Function main

Lab_09/Source2.cpp:50–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50int main()
51{
52 main_menu_view1();
53 int a[3][5];
54 // inputting numbers for the 2D array
55 cout << "Please input 5 Sales for Salesman 1, Salesman 2 and Salesman 3: \n ";
56 for (int row = 0; row < 3; row++)
57 {
58 for (int col = 0; col < 5; col++)
59 {
60 cin >> a[row][col];
61 }
62 }
63 cout << "Main table of Salesman and Sales: \n";
64 for (int row = 0; row < 3; row++)
65 {
66 for (int col = 0; col < 5; col++)
67 {
68 cout << a[row][col] << " ";
69 }
70 cout << endl;
71 }
72 cout << endl;
73 salesman_sum(a);
74 cout << endl;
75 sales_sum(a);
76 system("pause");
77 return 0;
78}

Callers

nothing calls this directly

Calls 3

main_menu_view1Function · 0.85
salesman_sumFunction · 0.85
sales_sumFunction · 0.85

Tested by

no test coverage detected