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

Function main

Lab_08/display.cpp:4–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2using namespace std;
3
4int main()
5{
6 int a[10];
7 // code for the input the elements of the array
8 cout << "Input an Array Elements. " << endl;
9 for (int i = 0; i < 10; i++)
10 {
11 cout << "array element [ " << i << " ] ";
12 cin >> a[i];
13 }
14 cout << endl;
15 // output tje arrays
16 cout << "Displaying arrays: " << endl;
17 for (int i = 0; i < 5; i++)
18 {
19 cout << "a[ " << i << " ] = " << a[i] << endl;
20 }
21
22 system("pause");
23 return 0;
24}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected