i am trying to do a more advanced version of euler problem 11 where user tells me the number of numbers to search for the greatest product. can someone tell me if my code so far for four numbers is good so far, because i am not sure if i am getting the write answer.
can someone tell me if my code so far for four numbers is good so far, because i am not sure if i am getting the write answer.
Use input for which you know the correct answer. Then you will know if it generates the correct answer. (But for the record, you're definitely not getting the correct answer, since you're not operating on the data read in from the file and you only read in 20 values out of the 400 the problem requires.)
Work on and test specific areas of the program before trying to put it all together.