import java.util.Arrays;
import java.util.Scanner;
class Exercicio5 {
public static void main
(String[] args
) { int tamanhoVetor = 5;
Scanner scan
= new Scanner
(System.
in); int[] original = new int[tamanhoVetor];
int[] inverso = new int[tamanhoVetor];
for (int i = 0; i < tamanhoVetor; i++) {
System.
out.
println("Digite um nĂºmero:"); original[i] = scan.nextInt();
}
for (int i = 0; i < tamanhoVetor; i++) {
inverso[i] = original[tamanhoVetor - 1 - i];
}
System.
out.
println("Os valores invertidos foram " + Arrays.
toString(inverso
)); }
}
aW1wb3J0IGphdmEudXRpbC5BcnJheXM7CmltcG9ydCBqYXZhLnV0aWwuU2Nhbm5lcjsKCmNsYXNzIEV4ZXJjaWNpbzUgewoKICAgIHB1YmxpYyBzdGF0aWMgdm9pZCBtYWluKFN0cmluZ1tdIGFyZ3MpIHsKICAgICAgICBpbnQgdGFtYW5ob1ZldG9yID0gNTsKICAgICAgICBTY2FubmVyIHNjYW4gPSBuZXcgU2Nhbm5lcihTeXN0ZW0uaW4pOwogICAgICAgIGludFtdIG9yaWdpbmFsID0gbmV3IGludFt0YW1hbmhvVmV0b3JdOwogICAgICAgIGludFtdIGludmVyc28gPSBuZXcgaW50W3RhbWFuaG9WZXRvcl07CiAgICAKICAgICAgICBmb3IgKGludCBpID0gMDsgaSA8IHRhbWFuaG9WZXRvcjsgaSsrKSB7CiAgICAgICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbigiRGlnaXRlIHVtIG7Dum1lcm86Iik7CiAgICAgICAgICAgIG9yaWdpbmFsW2ldID0gc2Nhbi5uZXh0SW50KCk7CiAgICAgICAgfQoKICAgICAgICBmb3IgKGludCBpID0gMDsgaSA8IHRhbWFuaG9WZXRvcjsgaSsrKSB7CiAgICAgICAgICAgIGludmVyc29baV0gPSBvcmlnaW5hbFt0YW1hbmhvVmV0b3IgLSAxIC0gaV07CiAgICAgICAgfQogICAgCiAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKCJPcyB2YWxvcmVzIGludmVydGlkb3MgZm9yYW0gIiArIEFycmF5cy50b1N0cmluZyhpbnZlcnNvKSk7CiAgICB9Cn0=