import java.util.Scanner ;
class SEP_06_exe2_p1 {
public static void main
( String args
[ ] ) { int [ ] x = new int [ 10 ] ;
int y = 0 ;
Scanner input
= new Scanner
( System .
in ) ; do {
System .
out .
print ( "Digite o " + ( y
+ 1 ) + "ยบ valor: " ) ; x[ y] = input.nextInt ( ) ;
y++; //incrementa 1 no y <== estava errado veja nota abaixo
} while ( y < 10 ) ;
y = 0 ;
do {
y++;
} while ( y < 10 ) ;
}
}
//https://pt.stackoverflow.com/q/35010/101
aW1wb3J0IGphdmEudXRpbC5TY2FubmVyOwpjbGFzcyBTRVBfMDZfZXhlMl9wMSB7CiAgICBwdWJsaWMgc3RhdGljIHZvaWQgbWFpbihTdHJpbmcgYXJnc1tdKSB7CiAgICAgICAgaW50W10geCA9IG5ldyBpbnRbMTBdOwogICAgICAgIGludCB5ID0gMDsKICAgICAgICBTY2FubmVyIGlucHV0ID0gbmV3IFNjYW5uZXIoU3lzdGVtLmluKTsKICAgICAgICBkbyB7ICAgICAgICAgCiAgICAgICAgICAgIFN5c3RlbS5vdXQucHJpbnQoIkRpZ2l0ZSBvICIgKyAoeSArIDEpICsgIsK6IHZhbG9yOiAiKTsKICAgICAgICAgICAgeFt5XSA9IGlucHV0Lm5leHRJbnQoKTsKICAgICAgICAgICAgeSsrOyAvL2luY3JlbWVudGEgMSBubyB5IDw9PSBlc3RhdmEgZXJyYWRvIHZlamEgbm90YSBhYmFpeG8KICAgICAgICB9IHdoaWxlICh5IDwgMTApOwogICAgICAgIHkgPSAwOwogICAgICAgIGRvIHsgICAgICAgICAKICAgICAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKHhbeV0pOwogICAgICAgICAgICB5Kys7CiAgICAgICAgfSB3aGlsZSAoeSA8IDEwKTsKICAgIH0KfQoKLy9odHRwczovL3B0LnN0YWNrb3ZlcmZsb3cuY29tL3EvMzUwMTAvMTAx