public class SubtracaoVetores {
public static void main(String[] args) {
int[] A = {8, 16, 24, 32, 40, 48, 56, 64};
int[] B = {1, 2, 3, 4, 5, 6, 7, 8};
int[] C = new int[8];
for (int i = 0; i < 8; i++) {
C[i] = A[i] - B[i];
}
System.out.println("Resultado da subtração na posição 7 do vetor C: " + C[7]);
}
}
To embed this program on your website, copy the following code and paste it into your website's HTML: