Question: Please write this code in eclipse according to outputs. Question 2 You are asked to write a Java program that reads four integers from the
Please write this code in eclipse according to outputs.
Question 2 You are asked to write a Java program that reads four integers from the user and stores them into an integer array. Your program must print the squares of the array elements on the screen. Sample Outputs Please enter the element 1: 45 Please enter the element 2: 23 Please enter the element 3: 9 Please enter the element 4: 8 The squares of the elements: 2025 529 81 64 Please enter the element 1: 13 Please enter the element 2: 65 Please enter the element 3: 78 Please enter the element 4: 34 The squares of the elements: 169 4225 6084 1156
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
