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 YouPlease 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!