finding the product of a collection of data values

hello everyone out there can someone help write this program, i have write a program that will find the product of a collection of data values, it should ignore all the negative numbers and terminate at zero

if some one could help me that would be great. i kinda have an idea but im not sure, do i need to store some values in an array? thank you

[359 byte] By [miketaa] at [2007-11-26 18:37:54]
# 1
This sounds like an assignment. Were you told to use an array? Where are the data values coming from?
DrLaszloJamfa at 2007-7-9 6:11:58 > top of Java-index,Java Essentials,Java Programming...
# 2
no it didnt specify anything else
miketaa at 2007-7-9 6:11:58 > top of Java-index,Java Essentials,Java Programming...
# 3
it's not specified where the data is coming from? What do you propose?
DrLaszloJamfa at 2007-7-9 6:11:58 > top of Java-index,Java Essentials,Java Programming...
# 4
i was going to have the user enter in the values
miketaa at 2007-7-9 6:11:58 > top of Java-index,Java Essentials,Java Programming...
# 5
Well, you could store the values in an array, but it's not necessary. You could have a variable that holds the product of all the positive numbers entered so far. Hmmm.... That's enough to write your program.
DrLaszloJamfa at 2007-7-9 6:11:58 > top of Java-index,Java Essentials,Java Programming...