the last array array 3 is not giving me the desired output. i see no logic errors therefore i do not know why i am getting the wrong output.
#include<stdio.h>
int arr1[5]={55,145,950,25,500};
int arr2[5]={44,58,98,25,62};
int arr3[5],array1,array2,array3;
int i=0,j=0,k=0;
for(i=0;i<5;i++){
array1=arr1[i]*2;
printf("array 1 doubled is %d . \n",array1);
//i++;
}
for(j=0;j<5;j++){
array2=arr2[j]+3;
printf("Array 2 increased by 3 is %d \n",array2);
//j++;
}
for(k=0; k<5; k++){
arr3[k]=array1+array2;
//printf("the reverse order after operations is %d",arr3[0]);
//k++;
printf("reverse order is %d\n",arr3[k]);
}
}