Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main {
- public static void main(String[] args) {
- int[] a = {44, 37, 3, 33, 5, 49, 7, 53, 9, 77, 82, 109, 10923, 12, 12, 99938, 887430, 87897340, 12435, 1246};
- int array1 = a.length;
- System.out.println(a.length);
- for (int i = 1; i < array1; i+=2) {
- System.out.println(a[i] * 3);
- }
- for (int i=0; i < array1; i+=2) {
- System.out.println(a[i] / 2);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement