Question: Write the code to declare an array named prices that is a double data type and will store the values of 1.99,2.56,9.99,6.5, and 10.95 in
Write the code to declare an array named prices that is a double data type and will store the values of 1.99,2.56,9.99,6.5, and 10.95 in its elements. Also, write the code for a for loop to dislay the value of each element on the console. in java language
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
