Your Order:
<%! String [] items = {"Music CD","Book","Software","Video"};
double [] prices = {12.95,6.90,29.99,17.97};
double total = 0;
%>
Item Name |
Price |
<% for(int i=0; i < items.length; i++)
{ %>
<%= items[i] %> |
$<%= prices[i] %> |
<% total += prices[i];
} %>
Total |
$<%=total%> |