Finding Reciprocals
Finding Reciprocals
<%
double values[] = {4, 3, 2, 1, 0, 1, 2, 3, 4};
int i = 0;
while (values[i] != 0){
out.println("The reciprocal = " + 1 / values[i++] + ".
");
}
%>