Advertisement
Derga

Untitled

Apr 2nd, 2023
742
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.64 KB | None | 0 0
  1.    
  2. int main() {
  3.     int array_a[N1];
  4.     int array_b[N2];
  5.     fillArray(array_a, N1);
  6.     fillArray(array_b, N2);
  7.     int array_a_first_positive_elem_pos = getFirstPositiveElemPos(array_a, N1);
  8.     int array_b_first_positive_elem_pos = getFirstPositiveElemPos(array_b, N2);
  9.     cout << "in first part array a elemenst count = " << array_a_first_positive_elem_pos
  10.         << " in second part array a elements count = " << N1 - array_a_first_positive_elem_pos << '\n';
  11.  
  12.     cout << "in first part array b elemenst count = " << array_b_first_positive_elem_pos
  13.         << " in second part array b elements count = " << N2 - array_b_first_positive_elem_pos << '\n';
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement