Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- using namespace std;
- int main() {
- const int n = 10;
- int A[n] = { 3, 43, 54, 64, 0, 43, 60, 20, 100, 304};
- int B[n] = { 7, 2, 154, 11, 33, 70, 142, 500, 54, 4};
- int C[2*n];
- for(int i = 0; i < n; i++) {
- C[i*2] = A[i];
- C[i*2+1] = B[i];
- }
- for(int i = 0; i < 2 * n; i++){
- cout<<C[i]<<" ";
- }
- cout<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement