Write the code to display the contents of the rates array from Pencil and Paper Exercise 4.

Question:

Write the code to display the contents of the rates array from Pencil and Paper Exercise 4. Use the for statement. 


Data From Exercise 4

Write the statement to declare and initialize a one-dimensional double array named rates that has five elements. Use the following numbers to initialize the array: 6.5, 8.3, 4.0, 2.0, and 10.5. 

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: