mirror of
https://github.com/System-End/APCSA.git
synced 2026-04-19 16:38:24 +00:00
17 lines
509 B
Java
17 lines
509 B
Java
import java.util.Scanner;
|
|
|
|
public class runner_U6_L5_Activity_Two {
|
|
|
|
public static void main(String[] args) {
|
|
Scanner scan = new Scanner(System.in);
|
|
System.out.println("Enter array length:");
|
|
int len = scan.nextInt();
|
|
scan.nextLine();
|
|
int[] nums = new int[len];
|
|
System.out.println("Enter values:");
|
|
for (int i = 0; i < len; i++) {
|
|
nums[i] = scan.nextInt();
|
|
}
|
|
System.out.println(U6_L5_Activity_Two.product(nums));
|
|
}
|
|
}
|