Imagine the user enters a list of integers. Count how many adjacent numbers sum to 10, and report this number. For example, if the
user enters the list [2,7,3,1,9,5,5,4,6,8] , your code would return 4 .
Please do not use any Java code or libraries that we have not covered in class; this defeats the purpose of the
assessment. |