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

Function main

Lab_08/Sort.cpp:37–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37int main()
38{
39
40 int arr1[5], arr2[5];
41 int arr3[10];
42 int i;
43 cout << "Input the elements for the first Array: ";
44 for (i = 0; i < 5; i++)
45 {
46 cin >> arr1[i];
47 }
48 cout << "Input the elements for the second Array: ";
49 for (i = 0; i < 5; i++)
50 {
51 cin >> arr2[i];
52 }
53 merging(arr1, arr2, arr3); // calling function merging
54 cout << "Sorted Elements: ";
55 for (i = 0; i < 10; i++)
56 {
57 cout << arr3[i] << " ";
58 }
59 cout << endl;
60 return 0;
61}

Callers

nothing calls this directly

Calls 1

mergingFunction · 0.85

Tested by

no test coverage detected