How can I get it to loop through an array until it reaches the value of -1? Can I do while(i!=-1)? I think a for statement afterwards but what do I put in the middle? for(j=0,?,j++)?
Dont know if that will work. The only thing I can pass to this function is the array itself. So I cant do a counter of the number of user inputs.