I want to try to get two arrays and sum them to another array, but it just doens't work, and I don't know why.
My code :
int v1[3],v2[3],v3[3];
for(int i = 0 ; i < 3; i++) {
printf("Type a number : \n");
scanf("%d", &v1[i]);
}
for(int i = 0 ; i < 3; i++) {
printf("Type a number : \n");
scanf("%d", &v2[i]);
}
for(int i = 0 ; i < 3; i++) {
v3[i] = v1[i] + v2[i];
scanf("%d", &v3[i]);
printf("Total : %d ", &v3[i]);
}
And when I get to type all the 6 numbers, he just don't show Total, and I have to type more to go to exit screen.
Screenshot :
