#include <bits/stdc++.h>
using namespace std;
int main() {
    int a[5]={1,2,3,5,6};
    int b[5];
    copy_n(a,5,b);
    for(int i=0;i<5;i++){
        cout<<b[i]<<" ";
    }
    return 0;
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: