#include #include using namespace std ; int main() { int arr1[] = { 1 , 2, 3, 4 , 5 } ; int arr2[5] = { 1 , 2 } ; for( int i1=0 ; i1 < 5 ; i1++ ) { arr2[i1] = arr1[i1] + arr2[i1] ; arr2[i1] += arr1[i1] ; cout << arr2[i1] << " " ; } //for cout << endl ; return(0) ; }