fork(2) download
  1. class HelloWorld {
  2. public static void main (String[] args) {
  3. int vet[] = new int[50];
  4. for (int i = 0; i < vet.length; i++) {
  5. if (i % 2 == 0) {
  6. vet[i] = (i + 1) * 2;
  7. }
  8. }
  9. for (int i = 0; i < vet.length; i++) {
  10. if (vet[i] == vet[vet.length - i - 1]) {
  11. System.out.println(vet[i] + " É PALINDROMO");
  12. }
  13. }
  14. }
  15. }
Success #stdin #stdout 0.05s 4386816KB
stdin
Standard input is empty
stdout
Standard output is empty