public class Ex4a { public static void main(String[] args) { int[] A = new int[5]; for(int i=0; i<A.length; i++) { A[i] = (int)(Math.random() * 100); } for(int i=0; i<A.length; i++) { System.out.println("i[" + i + "]=" + A[i]); } } }
Additional info: Reading user input from console
Results of the labs and assignments that do not involve usage of web server (lab #1) should be submitted as follows: