Advertisement
Guest User

Untitled

a guest
Sep 21st, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.45 KB | None | 0 0
  1. public class Main {
  2.     public static void main(String[] args) {
  3.         int[] a = {44, 37, 3, 33, 5, 49, 7, 53, 9, 77, 82, 109, 10923, 12, 12, 99938, 887430, 87897340, 12435, 1246};
  4.         int array1 = a.length;
  5.         System.out.println(a.length);
  6.         for (int i = 1; i < array1; i+=2) {
  7.             System.out.println(a[i] * 3);
  8.         }
  9.         for (int i=0; i < array1; i+=2) {
  10.             System.out.println(a[i] / 2);
  11.         }
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement